GATE Computer ScienceHardGATE CS (PYQ pattern)

A DFA over {a, b} has states 0 to 5, transitions 0: a→3, b→3; 1: a→0, b→5; 2: a→2, b→3; 3: a→1, b→5; 4: a→0, b→0; 5: a→3, b→3. Start 0, accepting {2}. How many states does the minimal DFA equivalent to it have?

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

Correct answer: C. 1

Remove the 2 unreachable state(s), leaving 4 reachable states, then merge indistinguishable ones: 1 classes remain.

More Theory of Computation questions

Exams that ask this topic