Professional Documents
Culture Documents
Mealy Moore
Mealy Moore
AUTOMATA
OUTPUT
WITH
Theory of Computation
Theory of Computation 2
TYPES
Moore Machine
Theory of Computation
Theory of Computation 4
Moore machine
Moore machine
a
b Input = a Input = b
Present
b Next Next Output
state
C/1 State State
A B C 0
B B C 0
b
C B C 1
Theory of Computation 6
Moore machine
Input : a a b
a
A/0 B/0
Output : 0 0 0 1
a
b
b
| output | = | input | + 1
C/1
b
Theory of Computation 7
Moore machine
a b
a b
A/0 B/0 C/1
b
Theory of Computation 8
Moore machine
a b
b a a
A/0 B/0 C/0 D/1
a
Theory of Computation 9
Moore machine
1 0
X/C Y/C Z/A
1
1 1 0
P/B
Theory of Computation 10
Moore machine
0 1
1 0
X/0 Y/1 Z/2
1 0
BY : Trusha Patel, CD Dept, CSPIT, CHARUSAT, Changa
11
Mealy machine
Theory of Computation
Theory of Computation 12
Mealy machine
Mealy machine
a/1
b/0 Input = a Input = b
Present
b/1 state Next Next
Output Output
C State State
A B 0 C 0
B B 0 C 1
b/0
C B 1 C 0
Theory of Computation 14
Mealy machine
Input : a a b
a/0
A B
Output : 0 0 1
a/1
b/0
b/1
| output | = | input |
C
b/0
Theory of Computation 15
Mealy machine
0/1
1/0
Theory of Computation 16
Mealy machine
0/0
0/1
1/1
X Y
1/0
Theory of Computation 17
a /1 a /2
X/0 Y/1 Z/2
a/0
Input = a Input = b
Present
state Next Output Next Output
State State
Mealy
X
Y
Z
Theory of Computation 21
Input = a Input = b
Present
state Next Output Next Output
State State
Mealy
X Y X
Y Z Y
Z X Z
Theory of Computation 22
Input = a Input = b
Present
state Next Output Next Output
State State
Mealy
X Y X 0
Y Z Y
Z X 0 Z
Theory of Computation 23
Input = a Input = b
Present
state Next Output Next Output
State State
Mealy
X Y 1 X 0
Y Z Y 1
Z X 0 Z
Theory of Computation 24
Input = a Input = b
Present
state Next Output Next Output
State State
Mealy
X Y 1 X 0
Y Z 2 Y 1
Z X 0 Z 2
Theory of Computation 25
0/z1
A B
0/z1 0 B/
1/z1 A
z1
1/z1
C
1
C/
1/z2 z1
Theory of Computation 27
0/z1
A B
0/z1 0 B/
1/z1 A
z1
1/z1
C 0
1
C/
1/z2 z1
C/
z2
Theory of Computation 28
0/z1
A B
0/z1 0 B/
1/z1 A
z1
1/z1
C 0
1
C/
1/z2 z1
1 C/ 0
z2
Theory of Computation 29
B/
0/z1 z2
A B
0
0/z1 0 B/
1/z1 A
z1
1/z1
C 0
1
1
C/
1/z2 z1
1 C/ 0
z2
Theory of Computation 30
1 B/
0/z1 z2
A B
0
0/z1 0 B/
1/z1 A
z1
1/z1
C 0
1
1
C/
1/z2 z1
1
No incoming transition for A so it has no output C/ 0
Can assume any z1 or z2 1
z2
Theory of Computation 31
1 B/
0/z1 z2
A B
0
0/z1 A/ 0 B/
1/z1
z1 z1
1/z1
C 0
1
1
C/
1/z2 z1
Input = a Input = b
Present
state Output
Next State Next State
Moore
Theory of Computation 33
Input = a Input = b
Present
state Output
Next State Next State
A Z1 or Z2
Moore
Theory of Computation 34
Input = a Input = b
Present
state Output
Next State Next State
A Z1 or Z2
Moore
B1 Z1
B2 Z2
Theory of Computation 35
Input = a Input = b
Present
state Output
Next State Next State
A Z1 or Z2
Moore
B1 Z1
B2 Z2
C1 Z1
C2 Z2
Theory of Computation 36
Input = a Input = b
Present
state Output
Next State Next State
A B1 C1 Z1 or Z2
Moore
B1 Z1
B2 Z2
C1 Z1
C2 Z2
Theory of Computation 37
Input = a Input = b
Present
state Output
Next State Next State
A B1 C1 Z1 or Z2
Moore
B1 B2 C1 Z1
B2 B2 C1 Z2
C1 Z1
C2 Z2
Theory of Computation 38
Input = a Input = b
Present
state Output
Next State Next State
A B1 C1 Z1 or Z2
Moore
B1 B2 C1 Z1
B2 B2 C1 Z2
C1 B1 C2 Z1
C2 B1 C2 Z2