Prerequisite – Mealy and Moore Machines
Mealy Machine – A mealy machine is defined as a machine in theory of computation whose output values are determined by both its current state and current inputs. In this machine atmost one transition is possible.
It has 6 tuples: (Q, q0, ∑, O, δ, λ’)
Q is finite set of states
q0 is the initial state
∑ is the input alphabet
O is the output alphabet
δ is transition function which maps Q×∑ → Q
‘λ’ is the output function which maps Q×∑→ O
Diagram –

Moore Machine – A moore machine is defined as a machine in theory of computation whose output values are determined only by its current state.
It has also 6 tuples: (Q, q0, ∑, O, δ, λ)
Q is finite set of states
q0 is the initial state
∑ is the input alphabet
O is the output alphabet
δ is transition function which maps Q×∑ → Q
λ is the output function which maps Q → O
Diagram –

Moore Machine –
- Output depends only upon present state.
- If input changes, output does not change.
- More number of states are required.
- There is less hardware requirement for circuit implementation.
- They react slower to inputs(One clock cycle later).
- Synchronous output and state generation.
- Output is placed on states.
- Easy to design.
Mealy Machine –
- Output depends on present state as well as present input.
- If input changes, output also changes.
- Less number of states are required.
- There is more hardware requirement for circuit implementation.
- They react faster to inputs.
- Asynchronous output generation.
- Output is placed on transitions.
- It is difficult to design.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
Recommended Posts:
- Conversion of Moore to Mealy machine (Set 4)
- Conversion of Moore to Mealy machine (Set 10)
- Conversion of Moore to Mealy machine (Set 9)
- Mealy and Moore Machines in TOC
- Moore and Mealy machines to count number of substring ‘ab’
- Moore and Mealy machines to produce 'A', 'B', 'C' depends on inputs that end with ’10’ or with ’11’ else other
- Design 101 sequence detector (Mealy machine)
- Design a mealy machine for 2's complement
- Mealy Machine for 1's Complement
- Moore Machines implementation in C++
- Difference Between Machine Language and Assembly Language
- Difference Between Data mining and Machine learning
- Difference Between Business Intelligence and Machine Learning
- Difference between Big Data and Machine Learning
- Difference Between Assembly Language And Machine Language
- Difference between Data Science and Machine Learning
- Difference Between Machine Learning and Deep Learning
- Difference between Parallel Virtual Machine (PVM) and Message Passing Interface (MPI)
- Difference between Byte Code and Machine Code
- Difference between Finite Automata and Turing Machine
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

