GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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}, ε→∅; δ(2): a→{0}, b→{0,1}, ε→∅; δ(3): a→{1}, b→{0,3}, ε→{2}. How many states does the minimal complete DFA of this ε-NFA's language have?
- A. 8
- B. 9
- C. 3
- D. 4
Correct answer: D. 4
After the ε-closure subset construction (8 reachable subsets) and merging equivalent subsets, 4 states remain.
More Theory of Computation questions
- 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?
- How many binary strings of length 10 contain no two consecutive 1s and also do not have 1 at both the first and the last position?
- How many strings of length 9 over {a, b} satisfy (na − nb) ≡ 0 (mod 3) AND contain no bb as a substring?