Automata - Lecture19 - Moore and Mealy Machines
Automata - Lecture19 - Moore and Mealy Machines
Automata - Lecture19 - Moore and Mealy Machines
Lecture Outline
• Example Moore and Mealy Machines Repeat
• Incrementing Mealy machines
• Overflow state
3
Constructing the incrementing
machine continued …
The Mealy machine have the states
q0, q1, q2 , where q0 is the start state and
= {0,1},
Г={0,1}
4
Overflow state
Due to typical property of Mealy machines of
having input bits equals to outputs, if string 1111 is
run as input, the output will be 0000 and not
10000. This is called overflow state.
5
Theorem
Statement:
For every Moore machine there is a Mealy
machine that is equivalent to it (ignoring
the extra character printed the Moore
machine).
Proof: see the following example…
8
9
Theorem
Statement:
For every Mealy machine there is a Moore
machine that is equivalent to it (ignoring
the extra character printed the Moore
machine).
Proof: Let M be a Mealy machine. At
each state there are two possibilities for
incoming transitions
1. All incoming transitions have the same
output.
2. All incoming transitions have different
output.
10
Proof continued …
Continued…
• Initial state conversion….
• No output on a set of transitions….
12
Example
Consider the following Mealy machine
13
Summary