GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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}; δ(2): a→∅, b→{1,3}; δ(3): a→{3}, b→{1}. The subset construction (reachable subsets only, ∅ included if reached) gives 13 DFA states. How many states does the MINIMAL complete DFA for the same language have?
- A. 13
- B. 8
- C. 7
- D. 5
Correct answer: C. 7
Build the 13 reachable subsets, mark the 8 that contain state 3 as accepting, then refine the partition {accepting, non-accepting} by successor classes until it stabilises. Several accepting subsets (and non-accepting ones) turn out to have identical futures and merge, leaving 7 classes.
More Theory of Computation questions
- 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}…
- An ε-NFA over {a, b} has states 0, 1, 2, 3, start state 0 and accepting set {1,2}. Transitions: δ(0): a→{2}, b→∅, ε→∅; δ(1): a→{0}, b→{3}…
- An ε-NFA over {a, b} has states 0, 1, 2, 3, 4, start state 0 and accepting set {0,2,4}. Transitions: δ(0): a→{3}, b→{2}, ε→∅; δ(1)…
- How many binary strings of length 12 contain neither 000 nor 111 as a substring?
- How many strings of length 8 over {a, b} contain aba as a substring but do NOT contain bab?
- How many strings of length 8 over {a, b, c} have no two adjacent equal symbols and also have first symbol ≠ last symbol?