GATE Computer ScienceVery hardGATE CS (PYQ pattern)
Let L = { aⁿ : n ≥ 5 and n ≡ 1 (mod 3) }. How many states does the minimal DFA for the concatenation L·L have?
- A. 8
- B. 12
- C. 9
- D. 15
Correct answer: D. 15
The smallest member of L is a⁷ (5 and 6 are not ≡ 1 mod 3), so L·L = { aᵏ : k ≥ 14, k ≡ 2 (mod 3) }. Its DFA needs the chain of lengths 0…11 (k = 11 is ≡ 2 but too short) and then a 3-cycle 12, 13, 14 with 14 accepting: 12 + 3 = 15. Taking the smallest member as 5 (or 10 for L·L) gives the trap 12.
More Theory of Computation questions
- Let L = { w ∈ {a, b} : |w| ≥ 5 and the 5th symbol from the LEFT equals the 1st symbol }. How many states does the minimal complete DFA for…
- L = { aⁿbᵐ : n, m ≥ 0 and n ≡ m (mod 3) }. How many states does the minimal complete DFA for L have?
- Occurrences of aa may overlap (aaa contains two). How many states does the minimal complete DFA for { w ∈ {a, b} : w contains EXACTLY two…
- L = { w ∈ {a, b} : (na(w) − nb(w)) is divisible by 3 and w contains no bb }. Its minimal complete DFA has 7 states. How many of them are…
- Consider L = { w ∈ {a, b} : every a in w is immediately followed by a b }. The minimal complete DFA for L has how many states?
- 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…