🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Mealy and Moore Machines: all 10 questions

Quiz: Mealy and Moore Machines · Question 7 of 10

To convert a Moore machine into a Mealy machine, what output do you put on the arrow from q to p on input a?

To convert a Moore machine into a Mealy machine, what output do you put on the arrow from q to p on input a?

  1. A.λ(q), the output of the state you leave
  2. B.λ(p), the output of the state you arrive in
  3. C.Always 0
  4. D.The input symbol a
Answer & explanation

Correct answer: λ(p), the output of the state you arrive in

λ′(q, a) = λ(δ(q, a)); the states and arrows stay the same.

Can you get the rest right without peeking?

Take the timed Quiz: Mealy and Moore Machines quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →