GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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): a→{0,1,3,4}, b→{0,4}, ε→{3,4}; δ(2): a→{1,3}, b→{0,4}, ε→∅; δ(3): a→{2,3}, b→{2}, ε→∅; δ(4): a→{0,1,3}, b→{0,3}, ε→{0}. Using ε-closures in the subset construction (start state is the ε-closure of {0}), how many reachable DFA states (counting ∅ if reached) are produced?
- A. 3
- B. 11
- C. 32
- D. 10
Correct answer: D. 10
Taking ε-closure after every move, the reachable subsets number 10; minimisation would reduce it to 3.
More Theory of Computation questions
- 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?
- How many binary strings of length 10 contain 0110 as a substring?