GATE Computer ScienceHardGATE CS

A Moore machine has states 0 to 7 (start state 0), input alphabet {0, 1} and next-state function δ(s, 0), δ(s, 1): 0:(5,7); 1:(3,2); 2:(0,4); 3:(5,3); 4:(4,6); 5:(3,2); 6:(3,3); 7:(1,0). The output is 1 in state 2 and 0 in all other states. All states are reachable. How many states does the minimal equivalent machine have?

  1. A. 4
  2. B. 3
  3. C. 5
  4. D. 6

Correct answer: C. 5

Partition refinement starts with {2} (output 1) and the rest (output 0), and splits classes whose successors fall in different classes until stable. The final classes are {0,3,7}, {1,5}, {2}, {4}, {6}: 5 classes.

More Digital Logic questions

Exams that ask this topic