GATE Computer ScienceEasyGATE CS (PYQ pattern)
How many states does the minimal complete DFA for { w ∈ {a, b}* : w begins with a } have?
- A. 2
- B. 3
- C. 4
- D. 1
Correct answer: B. 3
Start state, an accepting sink after a leading a, and a dead state after a leading b: 3 states.
More Theory of Computation questions
- Let L = { w ∈ {a, b} : the 3rd symbol from the right is a } (minimal DFA: 8 states) and Lᴿ its reversal (the 3rd symbol from the LEFT is…
- Let L = { w ∈ {a, b} : na(w) = 2·nb(w) }. The prefix language Pref(L) = { x : xy ∈ L for some y }. How many states does the minimal…
- Let L = (a + b)abb. The right quotient L / b = { w : wb ∈ L } has a minimal complete DFA with how many states?
- 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) =…