GATE Computer ScienceVery hardGATE CS (PYQ pattern)
Let L = (a + b)*abb. The left quotient a⁻¹L = { w : aw ∈ L } has a minimal complete DFA with how many states?
- A. 3
- B. 5
- C. 4
- D. 6
Correct answer: C. 4
aw ∈ L iff w ends in abb or w = bb; the language (a + b)*abb + bb needs 4 states after merging (the extra string bb cannot merge with the 'ends in abb' tracker).
More Theory of Computation questions
- Let L be the set of binary strings (MSB first, ε counted as 0 and accepted) whose value is divisible by 3; its minimal DFA has 3 states…
- Let L = { binary strings (MSB first, ε accepted) whose value is divisible by 5 }, with a minimal DFA of 5 states. For h(a) = 1 and h(b) =…
- Let L₁ = { w ∈ {a, b} : |w| ≡ 0 (mod 4) } and L₂ = { w : (na − nb) ≡ 0 (mod 4) }. The minimal complete DFA for L₁ ∪ L₂ has how many…
- Let L₁ = { w ∈ {a, b} : na(w) ≡ 0 (mod 4) } and L₂ = { w : |w| ≡ 0 (mod 6) }. The minimal complete DFA for L₁ ∩ L₂ has how many states?
- Let L₁ = { w ∈ {a, b} : na(w) is even } and L₂ = { w : |w| is even }. The minimal complete DFA for L₁ ∩ L₂ has how many states?
- Over {0, 1} (MSB first, ε counted as 0), L = { w : w is divisible by 5 and w contains 11 as a substring }. How many states does the…