GATE Computer ScienceHardGATE CSE

An NFA with ε-moves over {a, b} has states 0–4, start 0 and accepting state 4. Transitions: 0 –ε→ 1, 2 –ε→ 3; δ(0,a) = {0}; δ(1,b) = {2}; δ(2,a) = {1, 3}; δ(3,b) = {4}; δ(4,a) = δ(4,b) = {4}; all other moves are empty. Using ε-closures, how many distinct states (subsets, counting the empty set if reached) does the reachable part of the subset-construction DFA have?

  1. A. 7
  2. B. 6
  3. C. 8
  4. D. 10

Correct answer: A. 7

Start with ε-closure {0,1} and expand transitions on a and b, taking ε-closures each time; the reachable subsets number 7.

More Theory of Computation questions

Exams that ask this topic