Docsity

introduction to mealy machine, Exercises of Theory of Automata

Partial preview of the text

Download introduction to mealy machine and more Exercises Theory of Automata in PDF only on Docsity!

Mealy Machine

Transition Table of Mealy Machine Current state Input = a Input = b state output state output q0 q1 0 q3 0 q1 q3 1 q2 1 q2 q3 0 q3 1 q3 q3 1 q0 1

Example 1: Mealy Machine for 1’s

complement.

Example 3: Design Mealy Machine that

counts the occurrence of aa or bb in a

long input string.

input a b a b b a b a a a state q0^ q1^ q2^ q1^ q2^ q2^ q1^ q2^ q1^ q1^ q output 0 0 0 0 1 0 0 0 1 1 Input: ababbabaaa

Example 3: Binary number adder using

Mealy Machine.