GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A DFA over {a, b} has states 0 to 5, transitions 0: a→4, b→0; 1: a→1, b→1; 2: a→3, b→2; 3: a→2, b→1; 4: a→5, b→2; 5: a→4, b→5. Start 0, accepting {0,4,5}. 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. 5
  2. B. 3
  3. C. 7
  4. D. 4

Correct answer: D. 4

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

More Theory of Computation questions

Exams that ask this topic