GATE Computer ScienceVery hardGATE CS (PYQ pattern)
L = { w ∈ {a, b}* : the 5th symbol from the right is a } needs 32 states in a minimal DFA. Its reversal Lᴿ needs how many states in a minimal complete DFA?
- A. 7
- B. 32
- C. 6
- D. 16
Correct answer: A. 7
Lᴿ is the set of strings whose 5th symbol from the left is a: 5 counting states and then an accepting sink or a dead state. Reversal can blow a DFA up exponentially or shrink it, as here.
More Theory of Computation questions
- 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}…
- 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}…