CSE 322 Mealy and Moore Machine Lecture 4

  • Slides: 10
Download presentation
CSE 322 Mealy and Moore Machine Lecture #4

CSE 322 Mealy and Moore Machine Lecture #4

Mealy and Moore Model Ø In finite Automata acceptability was decided on the basis

Mealy and Moore Model Ø In finite Automata acceptability was decided on the basis of reach ability of the final state by initial state. Ø This restriction are removed and new model is given in which output can be chosen from some other alphabet. Ø The value of the output function Z(t) is a function of present state q(t) and the present input x(t) Ø Z(t) = λ(q(t), x(t)) Mealy Machine Ø The value of the output function Z(t) is a function of present state q(t) only and is independent of the current input Ø Z(t) = λ(q(t)) Moore Machine

Moore Machine is six-tuple (Q, ∑, ∆, δ, λ, q 0): (i) Q is

Moore Machine is six-tuple (Q, ∑, ∆, δ, λ, q 0): (i) Q is a finite set of states (ii) ∑ is the input alphabet (iii) ∆ is the output alphabet (iv) δ is the transition function from ∑ X Q into Q (v) λ is the output function mapping Q into ∆ and (vi) q 0 is the initial state

Mealy Machine is six-tuple (Q, ∑, ∆, δ, λ, q 0): (i) Q is

Mealy Machine is six-tuple (Q, ∑, ∆, δ, λ, q 0): (i) Q is a finite set of states (ii) ∑ is the input alphabet (iii) ∆ is the output alphabet (iv) δ is the transition function from ∑ X Q into Q (v) λ is the output function mapping ∑ X Q into ∆ and (vi) q 0 is the initial state

Example of Moore Machine

Example of Moore Machine

Example of Mealy Machine

Example of Mealy Machine

Transforming Mealy to Moore Machine

Transforming Mealy to Moore Machine

Solution

Solution

Transforming Moore to Mealy Machine

Transforming Moore to Mealy Machine

Solution

Solution