Questions: Mealy and Moore Machines

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A Moore machine and a Mealy machine both implement the same input-output function. Which of the following statements is most likely true about their sizes?

AThe Moore machine has fewer states because outputs are stored compactly in states rather than on every transition
BThe Mealy machine may have fewer states because output differentiation is handled by transition labels rather than requiring separate states
CBoth machines must have exactly the same number of states since they compute the same function
DThe Mealy machine always has more states because each transition must carry an output symbol
Question 2 Multiple Choice

A traffic light controller cycles through RED, YELLOW, and GREEN based on a timer. Two designers disagree: one uses a Moore machine, the other a Mealy machine. A student claims the Moore machine is wrong because 'output should depend on the input.' What is wrong with this claim?

AThe student is correct — traffic lights must respond to sensor input, so only Mealy machines are appropriate
BThe student is wrong — both models are valid; in the Moore machine, the output (light color) depends only on which phase (state) the controller is in, not on the timer input that triggered the transition
CThe student is correct because Moore machines cannot produce multiple distinct output values
DThe student is wrong because Moore machines are more powerful than Mealy machines and can handle this case more efficiently
Question 3 True / False

A Mealy machine is strictly more powerful than a Moore machine — it can recognize languages or compute functions that a Moore machine cannot, because its output depends on both state and input.

TTrue
FFalse
Question 4 True / False

In a Moore machine, the same state always produces the same output regardless of which input symbol or transition sequence led to that state.

TTrue
FFalse
Question 5 Short Answer

Explain why a designer might prefer a Mealy machine over a Moore machine when implementing the same behavior, and give an example of when the Moore machine would require more states.

Think about your answer, then reveal below.