GATE Computer ScienceVery hardGATE CS (PYQ pattern)

An NFA over {a, b} has states 0 to 4, start state 0, and these moves (a missing move means no transition): δ(0,a)={1,2}; δ(0,b)={0,1,2}; δ(1,a)={1,2,3}; δ(1,b)={4}; δ(3,a)={2}; δ(3,b)={2}; δ(4,a)={0}; δ(4,b)={1}. ε-moves: none. Using subset construction from the ε-closure of {0}, how many distinct DFA states (subsets, counting ∅ if it arises) are reachable?

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

Correct answer: A. 9

Running the subset construction and ε-closing every target gives 9 reachable subsets.

More Compiler Design questions

Exams that ask this topic