Open In App

Conversion of Moore to Mealy machine (Set 4)

Prerequisite: Mealy and Moore Machines, Difference between Mealy machine and Moore machine

In this article, we shall see a conversion of Moore to Mealy machine-
State Transition Diagram of a Moore machine:-


Above Moore machine takes set of all string over {a, b} as input and count the number of substrings as ‘ab’ i.e, on getting ‘ab’ as the input substrings it gives ‘1’ as the output thus on counting number of outputs ‘1’, it gives the count of substrings as ‘ab’ as well.



Now we need to transform the above transition diagram of Moore machine to equivalent Mealy machine transition diagram. Steps for the required conversion are given below:-

Note: While converting from Moore to Mealy machine the number of states remains same for both Moore and Mealy machine but in case of Mealy to Moore conversion it does not give the same number of states.

Article Tags :