Theory Of Computation (2160704)

BE | Semester-7   Winter-2018 | 27/11/2018

Q2) (b)

Explain moore machine and mealy machine.

Moore Machine

  • Mathematically Moore machine is a six tuple machine and defined as M0=(Q,Σ,Δ,δ,Λ^',q0)
    Where,
    • Q : a nonempty finite set of states in M0
    • Σ : a nonempty finite set of input symbols
    • Δ : a nonempty finite set of outputs
    • δ : Transition function which takes two arguments as in finite automata, one is input state and other is input symbol. The output of this function is a single state.
    • λ^': it is a mapping function which maps Q to Δ, giving the output associated with each state.
    • q0 : the initial state of M0 and q0 ∈ Q
  • Example : Design a moore machine for the 1’s compliment of binary number.
Moore Machine

Mealy Machine

  • Mathematically Mealy machine is a six tuple machine and defined as Me=(Q,Σ,Δ,δ,λ^',q0)
    Where,
    • Q : a nonempty finite set of states in Me
    • Σ : a nonempty finite set of input symbols
    • Δ : a nonempty finite set of outputs
    • δ : Transition function which takes two arguments as in finite automata, one is input state and other is input symbol. The output of this function is a single state.
    • λ^': It is a mapping function which maps Q×Σ to Δ, giving the output associated with each transition.
    • q0 : the initial state of Me and q0 ∈ Q
  • Example : Design a mealy machine for the 1’s compliment of binary number
Mealy Machine