GATE Computer ScienceHardGATE CS (PYQ pattern)
A DFA over {a, b} has states 0 to 5, transitions 0: a→2, b→4; 1: a→5, b→1; 2: a→2, b→4; 3: a→4, b→5; 4: a→1, b→1; 5: a→3, b→5. Start 0, accepting {2}. How many states does the equivalent minimal DFA have?
- A. 4
- B. 3
- C. 2
- D. 6
Correct answer: B. 3
All six states are reachable. Split {2} vs the rest. 0 and 2 have identical transitions (a→2, b→4), so they differ only in acceptance; among the non-accepting states, 0 goes to 2 on a while 1, 3, 4, 5 never reach state 2 again (from 4, 1, 5, 3 only the set {1, 3, 4, 5} is reachable). Classes: {2}, {0}, {1, 3, 4, 5} — 3 states.
More Theory of Computation questions
- A DFA over {a, b} has states 0 to 5, transitions 0: a→3, b→3; 1: a→0, b→5; 2: a→2, b→3; 3: a→1, b→5; 4: a→0, b→0; 5: a→3, b→3. Start 0…
- A DFA over {a, b} has states 0 to 5, transitions 0: a→5, b→0; 1: a→5, b→1; 2: a→1, b→1; 3: a→5, b→3; 4: a→2, b→3; 5: a→4, b→4. Start 0…
- A DFA over {a, b} has states 0 to 5, transitions 0: a→2, b→0; 1: a→0, b→3; 2: a→2, b→5; 3: a→4, b→2; 4: a→3, b→4; 5: a→4, b→1. Start 0…
- A DFA over {a, b} has states 0 to 5, transitions 0: a→2, b→1; 1: a→5, b→4; 2: a→5, b→4; 3: a→3, b→0; 4: a→0, b→3; 5: a→5, b→1. Start 0…
- A DFA over {a, b} has states 0 to 5, transitions 0: a→4, b→2; 1: a→4, b→2; 2: a→3, b→3; 3: a→5, b→0; 4: a→0, b→5; 5: a→2, b→4. Start 0…
- For a language L, the derivative u⁻¹L is { w : uw ∈ L }. Let L be the language of the regular expression (a + b)abb. Which expression…