Professional Documents
Culture Documents
C 0 U R SE S AN D L E C TU RE S - No. 88
FADRIZIO LUCCIO
UNIVERSITY OF PISA
AN INTRODUCTION
TO THE THEORY OF AUTOMATA
UDINE 1971
F. L.
S = (.O,Y,Q,Ä.,Ö) ( 1)
8 2. The notion of state
where:
.0. is the set of input segments: ~e..Ois an admissible in-
put signal applied for a finite interval of time t 0 - t
y is the set of outputs;
Q is the set of states;
Ä. is a mapping of Qxn into Q (*) indicated by:
by: A.:Qx.O-Q.
is a mapping of Q x.O. onto Q <~~) indicated by:
by: Ö:Qx.O.-Y.
The interpretation·of (1) is the one of a system which, in state
q e. Q at time t0 , will react to the input segment (Al applied dur-
ing the interval t 0 - t , by assuming the state Ä(q, w)~ Q and ge!!_
erating the output Ö(q,~)6Y at the time t.
Althougb some of the properties which will be de-
r.ived are valid in the general case of a system of the above type,
we will immediately restriet our field of study to the class of
automata, by imposing some restrictions over the quintuple (1);
namely:
i. the functioning of the system is studied in discrete time;
that is, in consecutive moments, identifiable as t = 0, 1 .•.
on a suitable discrete scale;
ii. !l is finite;
iii. Y is finite.
While constraint iii. does not bear any message
of particular importance, some basic facts about the automaton
nature are substantiated by constraints i. and ii. In fact: i'.
being the time discrete implies that any input segment w is a
discrete sequence Of Signals; and: ii I • being n finite implies
that such sequences are finite in number, that is the set X of
input signals is finite. This last implication shows that D be-
comes coincident with the set x• of all the possible sequences
of finite length, composed on the set X under concatenation of
its elements. (*)
Since X* can be directly derived from X , this
last set substitutes .0 in the definition of automaton, which is
derived as follows from the given definition of system.
A =(X,Y,Q,/-..,Ö) (2)
where:
X is the finite set of input signals (or inputs);
y is the finite set of output signals (or outputs);
Q is the set of states;
;x,. QxX- Q
0 QxX- y
"- Qx x•- Q
(3)
~ Q x x•- v
for any state qi.~ Q . To any branch of Cf connecting ni. to "i, the
pair Xr/Ys is associated, such that A.(qi., x.r) = qj and Ö (qi., xr) =
=Ys• For example, the simple automaton:
A = (X,y,Q,A.,Ö)
where:
QxX /-.. ö
ql ' x., q2. y1
q1 ' x2. q3 y,_
q", x.1 q, Y1
q2., x:t. ql y2.
q, ' x1 q2. y2.
q) ' :x:2. q, y,
q" ' x, q, y,_
q"t , %.2. q%. y,
12 2. The notion of state
{5)
pu.sh/ou,t
(6)
pu.shji.n
p
(7)
s
be automata, where small p and small s will be reserved to indi-
cate the states of P and S respectively, and let
Xp = X5 ( that implies X; = x;) .
Definition4. A state p of Pis equivalent to a state s of S if,
for every sequence x*, Öp (p, x•) = Ö5 (s, x*).
In symbols, the equivalence is indicated as p = S.
If P is coincident with S, the equivalence is defined between
states of a single automaton.
For example, q 1 = q2. in the automaton (5). In fact,
•
any input sequence X can be expressed as:
x* = x•1 x.•x•
:1. 3
where
That is, at any step, Ö(q 0 i.•)=Ö(q2.,x•), where. i•is any sub-
sequence of x•.
Exercise. Construct two simple automata P, 5 such that:
Xp = X5 ; Qp = {Pu Pz.}; Q5 "" {5 1 ,51 } ; P1 =5 1 , and no other e-
quivalence between states holds.
It can be easily shown (Def. 4) that the follow-
ing properties are valid for the equivalence:
p • p for every state p (reflexivity);
if p a s, then s a p (symmetry);
if p a s and s a I"' , then p • r- ( transi tivi ty).
Then, for a single automaton A, • is an algebraic eguivalence
relation on the set Q of states. That is, if q is a typical ele-
ment of Q, {q}- {CfL I qi. e q} is the eguivalence class of q gen-
erated by • ; the family of such equivalence classes is a parti-
tion of Q. ( ~*")
(8)
(9)
{-l~) For a set A , :ff(A) denotes too number of elements (or ./.
A bound to the maximum length of testing sequences 19
cardinality) of A.
20 3. Equivalence·and minimization
( 10)
x,1y,
whose input sequences are merely strings of X1 1 s. The states qt
and q~ are not equivalent, since they yield different outputs in
response to an input sequence •
~(n • 1 ) of length n - 1 :
while any sequence of smaller length would yield the same output
( 11)
lamp has two states: off-on. The sxitches have two positions: open-
- closed (indicated by o- c). In any condition,Lchanges its
state by moving anyone of the swi tches ( 5 1 and S.t. cannot be moved
contemporarily).
We must consider four inputs, namely oo, oc, co,
cc, corresponding to the possible positions of S 1 S~; and two out-
puts, namely off, on, corresponding to the conditions ofl. In
designing the network, the two state automaton (12.a) can be used:
(12.a) (12.b)
in. cell ( qi,, qp. Such couples q,., q 5 consti tute the condi~
ö. cq j, , x. h) = öcqi , x. h)
IJ.(qj,' x.h) = /-.(qi ' xh)
(13)
More specifically:
Definition 7. Two automata P and S are weakly equivalent if,
26 3. Equivalence and minimization
,
and vice versa.
An example of weak equivalence is exhibi ted by the
two automata:
(14)
~,./yl
53 " II
p, " " "·'
and the same correspondences hold between states Pi. and sJ , for
the 11 vice versa 11 of definition 7.
However, P and S of (14) are not equivalent, since
no state of 5 is equivalent to p1 or to p,. (and no state of P is
equivalent to 51 or S.z.).
State controllability and cost of transitions 27
c:QxX-C
c: Q x x•- c
by postulating the additivity of costs:
The optimal control problem. Definition of experiment 29
( 15)
32 5. Incomplete automata
5. Incomplete automata.
The automaton studied thus far, as it appears in
definition 1, is complete; that is, the next state and output
are specified for each possible state and input.
However, this condition turns out not to be the
most general, nor the most common in practical cases. In fact,
whenever the automaton is used in synthesis problems, as to mod-
el the behavior of a system to be designed, there may well be
some pairs of state and input q~, :x:h for which either A.(q~, xh)
or Ö(q~,x.h) is not defined. Such an automaton is called incom- .
plete. Its formal definition is as follows:
Definition 11. An incomplete automaton A is a quintuple:
(16) A = (X,Y,Q,/I.,Ö)
where:
X is the finite set of inputs;
Incomplete automata: the reasons for incompleteness 33
that is, both next state and output are left unspecified.
2. Input Xn should never appear when A is in state qi. : if :x;h
I/io
am/sono are/sei
(18)
great/ generous/
/grande /generoso
X- ( I,you}/ERROR
I/io
( 19)
great/ generous/ X- (great,honest,
/grande /generoso generous}/
/ERROR
X- {;}/ERROR
X /ERROR
(~~) For semplicity, a single arc per node has been added to the./.
Inclusion of states
37
6. Inclusion.
As already illustrated, the notion of equivalence
is the key for comparison of the external behavior of complete
automata, and ultimately for the minimization of a given complete
automaton. However, if incompleteness is considered, it is not
(20)
q1 ~ q, '
Inclusion of automata and compatitbility of states 39
whose intersection is { q 1 } •
let Ci. be the class of all the distinct specified sta tes among
, .
we say that Ci. is irnplied by C. By proposition 6, any implied
class Ci. is a c -class (i. e., all the states in Ci. must be pair-
wise compatible). In the example (20), the classes implied by C=
= {q 0 q3} are:
.
'
A collection of c-classes is closed if, for any
class C of the collection, every implied class Ci. is contained in
at least one class of the collection.
A minimal collection of c-classes is a complete
and closed collection with minimum number of classes.
Assertion 3. For any incomplete automatonA, an automaton A' with
minimum number of states, such that A ~ A', can be constructed
by associating the states of A' to the members of a minimal
collection of c-classes of A.
Inputs and outputs of A' are consequently assign-
ed.
For automaton (20), a minimal collection of C-·
-classes is:
'
and a minimum state automaton that includes (20) correspondently
Determinin~ the c-classes 43
is:
(21)
whose states 51 and 5.7. are respectively derived from {qu ql} and
[q~}· (21) is still incomplete, although more densely specified
than (20).
However, also
'
isaminimal collection for (20), and a second minimum state au-
tomaton that includes (20) can be derived.
(22)
for every input xh for which both next states are specified;
and
for every input X. h for which both next sta tes are specified.
Basedonproposition 7, the Paull and Unger pro-
cedure illustrated in section 3 applies almost unchanged to the
detemination of compatibilities. (~~) The table will b.e called
compatibility table, since ~ substitutes = in its interpreta-
tion. In determining the initial compatibilities on the table,
matehing of two outputs is considered to be met if one or both
outputs are unspecified. Updating of the table is identical to
the complete case.
In the present case also, the procedure conver-
(23)
great/ generous/
;grande /generoso
(25)
;/;
and/e
great/ generous/
/grande /generoso
;/;
and/e 1
(25 ')
great/ generous/
/grande /generoso
I/io
2
am/sono
and/e ;/;
......
~ (27)
so 6. Inclusion
(29)
(class {q"' q.,} appearing in (28) has been cancelled from the
class set, since is included in{qPqHq.,} ).
As a consequence, c-class E is now excluded by C
and can be eliminated.
A process of such kind is obviously iterative.
Details on its application, leading to a general extended defi-
nition of prime classes can be found in Luccio [7].
7. Extensions
We conclude these notes by indicating some pos-
sible extensions of the notions discussed thus far, on which
more werk is to be done.
In the definition of incomplete automata (section
5), the notion of unspecified next state was introduced: the
transition to an unspecified state may be interpreted as the
52 7. Extensions
(30)
Note that more than one branch labeled with the same input leaves
from any node (e.g., branch labeled "B" from the "initial state").
Note further that all the non specified next states correspond to
errors (e.g., next state of "state B" for input "A"), thus block-
ing the possible movement of one operating point.
Exercise. Check the functioning of (30), by trying on it a correct
and an incorrect input sequence (e.g., MAMMA and PRETE).
Exercise (voluntary). Find a deterministic automaton that per-
forms the task of (30).
Developin~ theories of non deterministic automata
seen as input/output translatorsis still an open field of study.(*)
REFERENCES
[5] R.E. Kalman, P.L. Falb and M.A. Arbib. Topics in mathe-
matical system theory. Part 3. McGrow Hill, New
York, 1969.
ADDITIONAL BIBLIOGRAPHY
CONTENTS
Page
Preface ................................................ 3
1. Introduction: Autornata and Systems •...........••••.• 5
2. The notion of state • •••••••••••••••••••••••••••••••• 6
3. Equivalence and rninirnization •••••••••••••••••••••••• 14
4. Gontrollability and observability ••••••••••••••••••• 27
5. Incornplete autornata ••••••••••••••••••••••••••••••••• 32
6. Inclusion ••••••••••••••••••••••••••••••••••••••••••• 37
7. Extensions •••••••••••••••••••••••••••••••••••••••••• 51
References •••••••••••••••••••••••••••••••••••••••••••• • 55