GATE Computer ScienceVery hardGATE CSE · UGC NET

An NFA over {a, b} has states 0–4, start state 0 and accepting state 4. Transitions: 0 –a→ {0,1}; 0 –b→ {0}; 1 –a,b→ {2}; 2 –a,b→ {3}; 3 –a,b→ {4}; and an ε-move 4 → 1. State 4 has no other moves. The subset construction is applied (ε-closures taken). How many distinct reachable subsets (DFA states, including ∅ if reached) arise?

  1. A. 12
  2. B. 16
  3. C. 15
  4. D. 8

Correct answer: A. 12

Expanding the start closure {0} on a, b with the ε-move 4→1 folded in, the reachable subsets number 12.

More Theory of Computation questions

Exams that ask this topic