Noncommutative signal-flow graph
In automata theory and control theory, branches of mathematics, theoretical computer science and systems engineering, a noncommutative signal-flow graph is a tool for modeling[1] interconnected systems and state machines by mapping the edges of a directed graph to a ring or semiring.
A single edge weight might represent an array of impulse responses of a complex system (see figure to the right),[2] or a character from an alphabet picked off the input tape of a finite automaton,[3] while the graph might represent the flow of information or state transitions.
As diverse as these applications are, they share much of the same underlying theory.[4][5]
Definition
Consider n equations involving n+1 variables {x0, x1,...,xn}.
- [math]\displaystyle{ x_i = \sum_{j=0}^n a_{ij}x_j, \;\;\; 1\leq i \leq n, }[/math]
with aij elements in a ring or semiring R. The free variable x0 corresponds to a source vertex v0, thus having no defining equation. Each equation corresponds to a fragment of a directed graph G=(V,E) as show in the figure.
The edge weights define a function f from E to R. Finally fix an output vertex vm. A signal-flow graph is the collection of this data S = (G=(V,E), v0,vm [math]\displaystyle{ \in }[/math] V, f : E → R). The equations may not have a solution, but when they do,
- [math]\displaystyle{ x_m = T x_0, }[/math]
with T an element of R called the gain.
Successive Elimination
Return Loop Method
As with Mason's rule, these[clarification needed] gain expressions combine terms in a graph-theoretic manner (loop-gains, path products, etc.). They are known to hold over an arbitrary noncommutative ring and over the semiring of regular expressions.[5]
Formal Description
The method starts by enumerating all paths from input to output,{{clarify|reason=i/o of what? Does the method start of a directed g initions:
- The j-th path product is (by abuse of notation) a tuple of kj edge weights along it:
- [math]\displaystyle{ p_j = (w^{(j)}_{k_j},\ldots, w^{(j)}_2, w^{(j)}_1). }[/math][clarification needed]
- To split a vertex v is to replace it with a source and sink respecting the original incidence and weights (this is the inverse of the graph morphism taking source and sink to v).
- The loop gain of a vertex v w.r.t. a subgraph H is the gain from source to sink of the signal-flow graph split at v after removing all vertices not in H.
- Each path defines an ordering of vertices along it. The along path j, the i-th FRL (BRL) node factor is (1-Si(j))−1 where Si(j) is the loop gain of the i-th vertex along the j-th w.r.t. the subgraph obtained by removing v0 and all vertices ahead of (behind) it.
The contribution of the j-th path to the gain is the product along the path, alternating between the path product weights and the node factors:
- [math]\displaystyle{ T_j = \prod_{i=k_j}^1 (1-S^{(j)}_i)^{-1} w^{(j)}_i, }[/math]
so the total gain is
- [math]\displaystyle{ T = \sum_{j\in J} T_j. }[/math]
An Example
Consider the signal-flow graph shown. From x to z, there are two path products: (d) and (e,a). Along (d), the FRL and BRL contributions coincide as both share same loop gain (whose split reappears in the upper right of the table below):
- [math]\displaystyle{ f+e(1-b)^{-1}c, }[/math]
Multiplying its node factor and path weight, its gain contribution is
- [math]\displaystyle{ T_d = \left[1 - f - e(1-b)^{-1}c \right]^{-1}d. }[/math]
Along path (e,a), FRL and BRL differ slightly, each having distinct splits of vertices y and z as shown in the following table.
Adding to Td, the alternating product of node factors and path weights, we obtain two gain expressions:
- [math]\displaystyle{ T^{(FRL)} = \left[1 - f - e(1-b)^{-1}c \right]^{-1}d + \left[1 - f - e(1-b)^{-1}c \right]^{-1}e(1-b)^{-1}a, }[/math]
and
- [math]\displaystyle{ T^{(BRL)} = \left[1 - f - e(1-b)^{-1}c \right]^{-1}d + (1-f)^{-1}e\left[1 - b - c(1-f)^e\right]^{-1}a, }[/math]
These values are easily seen to be the same using identities (ab)−1 = b−1a−1 and a(1-ba)−1=(1-ab)−1a.
Applications
Matrix Signal-Flow Graphs
Consider equations
- [math]\displaystyle{ y_i=\sum_{j=1}^2 a_{ij} x_j + \sum_{j=1}^2 b_{ij}y_j }[/math]
and
- [math]\displaystyle{ z_i=\sum_{j=1}^2 c_{ij} y_j, }[/math]
This system could be modeled as scalar signal-flow graph with multiple inputs and outputs. But, the variables naturally fall into layers, which can be collected into vectors x=(x1,x2)t y=(y1,y2)t and z=(z1,z2)t. This results in much simpler matrix signal-flow graph as shown in the figure at the top of the article.
Applying the forward return loop method is trivial as there's a single path product (C,A) with a single loop-gain B at y. Thus as a matrix, this system has a very compact representation of its input-output map:
- [math]\displaystyle{ T = C(1-B)^{-1}A. }[/math]
Finite Automata
An important kind of noncommutative signal-flow graph is a finite state automaton over an alphabet [math]\displaystyle{ \Sigma }[/math].[3][4]
Serial connections correspond to the concatenation of words, which can be extended to subsets of the free monoid [math]\displaystyle{ \Sigma^* }[/math]. For A, B [math]\displaystyle{ \subseteq\Sigma^* }[/math]
- [math]\displaystyle{ A \cdot B = \{ab \mid a\in A, b\in B\}. }[/math]
Parallel connections correspond to set union, which in this context is often written A+B.
Finally, self-loops naturally correspond to the Kleene closure
- [math]\displaystyle{ A^* = \{\lambda\} + A + AA + AAA + \cdots, }[/math]
where [math]\displaystyle{ \lambda }[/math] is the empty word. The similarity to the infinite geometric series
- [math]\displaystyle{ (1-x)^{-1} = 1 + x + x^2 + x^3 \cdots, }[/math]
is more than superficial, as expressions of this form serve as 'inversion' in this semiring.[6]
In this way, the subsets of [math]\displaystyle{ \Sigma^* }[/math] built of from finitely many of these three operations can be identified with the semiring of regular expressions. Similarly, finite graphs whose edges are weighted by subsets of [math]\displaystyle{ \Sigma^* }[/math] can be identified with finite automata, though generally that theory starts with singleton sets as in the figure.
This automaton is deterministic so we can unambiguously enumerate paths via words. Using the return loop method, path contributions are:
- path ab, has node factors (c*, [math]\displaystyle{ \lambda }[/math]), yielding gain contribution
- [math]\displaystyle{ ac^*b, }[/math]
- path ada, has node factors (c*, c*, [math]\displaystyle{ \lambda }[/math]), yielding gain contribution
- [math]\displaystyle{ ac^*dc^*a, }[/math]
- path ba, has node factors (c*, [math]\displaystyle{ \lambda }[/math]), yielding gain contribution
- [math]\displaystyle{ bc^*a. }[/math]
Thus the language accepted by this automaton (the gain of its signal-flow graph) is the sum of these terms
- [math]\displaystyle{ L = ac^*b+ac^*dc^*a+bc^*a. }[/math]
Historical Notes
See also
- Signal-flow graph
- Mason's rule
- Finite automata
- Regular expressions
Notes
References
- Andaloussi, C.; Chalh, Z.; Sueur, C. (2006). "Infinite zero of linear time varying bond-graph models: Graphical rules". pp. 2962–2967. doi:10.1109/CACSD-CCA-ISIC.2006.4777109.
- Book, Ronald; Even, Shimon; Greibach, Sheila; Ott, Gene (1971). "Ambiguity in graphs and expressions". IEEE Transactions on Computers (IEEE) 100 (2): 149–153. doi:10.1109/t-c.1971.223204. http://www.diku.dk/hjemmesider/ansatte/henglein/papers/book1971.pdf.
- Brzozowski, J.A.; McCluskey Jr., E.J. (1963). "Signal flow graph techniques for sequential circuit state diagrams". IEEE Transactions on Electronic Computers (IEEE) (2): 67–76. doi:10.1109/PGEC.1963.263416.
- Greibach, Sheila (1965). "A new normal-form theorem for context-free phrase structure grammars". Journal of the ACM (ACM) 12 (1): 42–52. doi:10.1145/321250.321254.
- Kuich, Werner; Salomaa, Arto (1985). Semirings, automata and languages. Springer-Verlag.
- Lorens, Charles S. (1964). Flowgraphs: For the Modeling and Analysis of Linear Systems. McGraw-Hill.
- Pliam, John; Lee, E. Bruce (1995). "On the global properties of interconnected systems". IEEE Transactions on Circuits and Systems I: Fund. Theory and Apps (IEEE) 42 (12): 1013–1017. doi:10.1109/81.481196. http://www.atbash.com/node/8.
- Riegle, Daryle; Lin, P.M. (1972). "Matrix signal flow graphs and an optimum topological method for evaluating their gains". IEEE Transactions on Circuit Theory (IEEE) 19 (5): 427–435. doi:10.1109/tct.1972.1083542.
Original source: https://en.wikipedia.org/wiki/Noncommutative signal-flow graph.
Read more |