11 Automata - Real Life Examples of Automata
11 Automata - Real Life Examples of Automata
0 …
0 0
1:30 1:31 1:32
Formal Definition: Automaton
• An automaton is a tuple A=Q, E, T,q0, l
– Q is a finite set of states;
– E is a finite set of transitions labels;
– T Q E Q is the set of transitions;
– q0 is the initial state ;
– l is the mapping which associates with each state
of Q the finite set of elementary properties which
hold in that state.
Digicode automaton
Q ={1, 2, 3, 4}
E ={A, B, C};
T ={(1, A, 2), (1, B, 1), (1,C, 1), (2, A, 2), (2, B, 3), (2, C,
1), (3,A,4), (3, B, 1),
(3, C, 1)}
q0=1
Digicode automaton
Q ={1, 2, 3, 4}
E ={A, B, C};
T ={(1, A, 2), (1, B, 1), (1,C, 1), (2, A, 2), (2, B, 3), (2, C,
1), (3,A,4), (3, B, 1),
(3, C, 1)}
q0=1
1 Properties
2
;
PA Px: an x has just been keyed in
l 3 P , pred predn : The preceding state in an execution is n.
; B 2
4; P , pred
A 3
;
Modulo 3 Counter Automaton
– Q ={0, 1, 2}
– E ={inc, dec}
– T ={(0, inc, 1), (0, dec, 2), (1,inc, 2), (1, dec, 0), (2, inc, 0), (2, dec,
1)}
– q0=0
Definitions
• Path: A sequence , finite or infinite, of transitions
which follow each other
: 3 B1A2 A2
– Length of a path: | |= Number of transitions
• Eg. | |=3
– (i) : denotes the state reached after ith transition (i <= |
| )
– Closed Path (Cycle)?
Definitions
Digicode Automaton
Digicode
-
– All states are reachable in the above
automaton
Definitions
• A guard is a constraint on a transition.
It allows the firing of a transition when it is
satisfied