GATE Computer ScienceVery hardGATE CS (PYQ pattern)
An NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {2,3}. Transitions: δ(0): a→{2,3}, b→{3}; δ(1): a→∅, b→{1}; δ(2): a→∅, b→{3}; δ(3): a→{1,2}, b→{0,2}. Applying the subset construction, how many states does the resulting DFA have if only reachable subsets are built (include ∅ if it is reached)?
- A. 7
- B. 11
- C. 13
- D. 16
Correct answer: B. 11
Run the subset construction from {0} and list every distinct reachable subset: there are 11 of them. The minimal DFA has only 7, and the full power set would be 16.
More Theory of Computation questions
- An NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {3}. Transitions: δ(0): a→{3}, b→{1,2}; δ(1): a→{0}, b→{1,3}…
- An NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {1, 3}. Transitions: δ(0): a→{2,3}, b→{2}; δ(1): a→{0,3}…
- An NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {0}. Transitions: δ(0): a→{3}, b→∅; δ(1): a→{1,3}, b→{3}; δ(2)…
- An NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {0,2}. Transitions: δ(0): a→{0}, b→{1,3}; δ(1): a→{0,1}, b→{0}…
- An NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {3}. Transitions: δ(0): a→{0,3}, b→{2}; δ(1): a→{2}, b→{0,1,3}…
- An ε-NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {2}. Transitions: δ(0): a→∅, b→{2}, ε→∅; δ(1): a→∅, b→{0,1,2}…