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
editThis article may be confusing or unclear to readers. In particular, what is defined here, in terms of what?. (September 2015) |
Consider n equations involving n+1 variables {x0, x1,...,xn}.
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 V, f : E → R). The equations may not have a solution, but when they do,
with T an element of R called the gain.
Return Loop Method
editThere exist several[2] noncommutative generalizations of Mason's rule.[clarification needed] The most common is the return loop method (sometimes called the forward return loop method (FRL), having a dual backward return loop method (BRL)). The first rigorous proof[clarification needed] is attributed to Riegle,[2] so it is sometimes called Riegle's rule.[6]
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
editThe method[clarification needed] starts by enumerating all paths from input to output,[clarification needed] indexed by j J. We use the following definitions:
- The j-th path product is (by abuse of notation) a tuple of kj edge weights along it:
- 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:
so the total gain is
An Example
editConsider 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):
Multiplying its node factor and path weight, its gain contribution is
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:
and
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
editMatrix Signal-Flow Graphs
editConsider equations
and
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:
Finite Automata
editAn important kind of noncommutative signal-flow graph is a finite state automaton over an alphabet .[3][4]
Serial connections correspond to the concatenation of words, which can be extended to subsets of the free monoid . For A, B
Parallel connections correspond to set union, which in this context is often written A+B.
Finally, self-loops naturally correspond to the Kleene closure
where is the empty word. The similarity to the infinite geometric series
is more than superficial, as expressions of this form serve as 'inversion' in this semiring.[7]
In this way, the subsets of 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 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*, ), yielding gain contribution
- path ada, has node factors (c*, c*, ), yielding gain contribution
- path ba, has node factors (c*, ), yielding gain contribution
Thus the language accepted by this automaton (the gain of its signal-flow graph) is the sum of these terms
See also
editNotes
edit- ^ Lorens 1964.
- ^ a b c Riegle & Lin 1972.
- ^ a b Brzozowski & McCluskey 1963.
- ^ a b Book et al. 1971.
- ^ a b Pliam & Lee 1995.
- ^ Andaloussi, Chalh & Sueur 2006, pp. 2962.
- ^ Kuich & Salomaa 1985.
References
edit- Andaloussi, C.; Chalh, Z.; Sueur, C. (2006). "Infinite zero of linear time varying bond-graph models: Graphical rules". Computer Aided Control System Design, 2006 IEEE International Conference on Control Applications. 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" (PDF). IEEE Transactions on Computers. 100 (2). IEEE: 149–153. doi:10.1109/t-c.1971.223204. S2CID 20676251.
- Brzozowski, J. A.; McCluskey, E. J. Jr. (1963). "Signal flow graph techniques for sequential circuit state diagrams". IEEE Transactions on Electronic Computers (2). IEEE: 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. 12 (1). ACM: 42–52. doi:10.1145/321250.321254. S2CID 12991430.
- 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. 42 (12). IEEE: 1013–1017. doi:10.1109/81.481196.
- Riegle, Daryle; Lin, P.M. (1972). "Matrix signal flow graphs and an optimum topological method for evaluating their gains". IEEE Transactions on Circuit Theory. 19 (5). IEEE: 427–435. doi:10.1109/tct.1972.1083542.