Exam-style question
Try this first
A Mealy machine starts in state S. Its transition table is: from S, input 0 leads to T and produces output 1; from S, input 1 leads to S and produces output 0; from T, input 0 leads to S and produces output 0; from T, input 1 leads to T and produces output 1. Trace the input sequence 0110. State the sequence of states visited after each input and the output sequence.
Answer and explanation
Concise answer
The machine starts in S.
Why this is correct
The current state must be used before processing each input. Starting at S, the first 0 changes the state to T. Both following 1 inputs keep the machine in T and produce 1. The final 0 changes T to S and produces 0. Since this is a Mealy machine, each output is attached to the transition taken.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
