GATE Computer ScienceHardGATE CS (PYQ pattern)
Let L = (a + b)*abb. The right quotient L / b = { w : wb ∈ L } has a minimal complete DFA with how many states?
- A. 4
- B. 3
- C. 5
- D. 2
Correct answer: B. 3
wb ∈ (a+b)*abb iff w ends in ab, so L / b = (a + b)*ab, which needs the three states 'no progress', 'a', 'ab'.
More Theory of Computation questions
- Let L = (a + b)abb. The left quotient a⁻¹L = { w : aw ∈ L } has a minimal complete DFA with how many states?
- 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?