matrix characterizations of automata
Let be a finite automaton. Recall that can be visualized by a directed graph called the state diagram of . The nodes of are the states of (elements of ), and the edges of are labeled by the input symbols of (elements of ).
Suppose . For each symbol , we define an matrix over the non-negative integers as follows: the cell
In other words, is a matrix composed of ’s and ’s, such that cell is provided that there is an edge from node to with label . may be viewed as a function from to the set of matrices whose entries are ’s and ’s, mapping to just described.
To completely describe , we use two -dimensional vectors and to specify and respectively. The -th component of is if and only if is a start state. Otherwise, it is a . is defined similarly. Thus, the triple describes .
The following is the state diagram of an automaton with two states over , and its description by matrices:
Conversely, given a triple , where is a function, and are two -dimensional vectors , we can construct an automaton as follows: where
-
1.
has elements ;
-
2.
is a subset of such that iff the -th component of is ;
-
3.
is a subset of such that iff the -th component of is ;
-
4.
for each pair , is the subset of such that iff cell of is .
Let us look more closely now at the function . Given a function , we may extend it in a unique way to a homomorphism from to , the monoid of matrices generated by , where the multiplication is defined by the ordinary matrix multiplication. In other words, if are words over ,
the product of matrices and . We use the same notation for this extension. In the example above, we see that
The following two lemmas are some consequences:
Lemma 1.
For any word over , cell of the matrix is the number of paths from to with label .
Treating as a row vector and as a column vector, we get
Lemma 2.
For any word over ,
-
•
the -th component of the row vector is the number of paths from a start state to with label .
-
•
the -th component of the column vector is the number of paths from to a final state with label .
-
•
is the number of paths from a start state to a final state with label .
Combining the two lemmas, it is easy to see that
Proposition 1.
Title | matrix characterizations of automata |
---|---|
Canonical name | MatrixCharacterizationsOfAutomata |
Date of creation | 2013-03-22 19:02:13 |
Last modified on | 2013-03-22 19:02:13 |
Owner | CWoo (3771) |
Last modified by | CWoo (3771) |
Numerical id | 7 |
Author | CWoo (3771) |
Entry type | Definition |
Classification | msc 68Q05 |
Classification | msc 68Q42 |
Classification | msc 03D10 |