GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A DFA over {a, b} has states 0 to 5, transitions 0: a→5, b→5; 1: a→5, b→3; 2: a→1, b→4; 3: a→0, b→1; 4: a→1, b→1; 5: a→5, b→4. Start 0, accepting {2}. Using the table-filling (Myhill–Nerode) algorithm on all six states (reachable or not), how many unordered pairs of distinct states are equivalent?

  1. A. 11
  2. B. 9
  3. C. 13
  4. D. 10

Correct answer: D. 10

Mark pairs with different acceptance, then propagate markings backwards through transitions until stable; 5 of the 15 pairs end up marked, leaving 10 equivalent pairs.

More Theory of Computation questions

Exams that ask this topic