GATE Computer ScienceHardGATE CS (PYQ pattern)
The regular expression a*(ba*b)*a* is over Σ = {a, b}. How many states does the minimal complete DFA for its language have?
- A. 2
- B. 6
- C. 5
- D. 7
Correct answer: C. 5
Strings like b·a·b·a·b·a·b have 4 b's but are not generated, because consecutive pairs ba*b cannot have a's between them. So the language is NOT 'even number of b's' (2 states); enumeration of Myhill–Nerode classes gives 5.
More Theory of Computation questions
- The regular expression (a + b)(ab + ba)(a + b) is over Σ = {a, b}. How many states does the minimal complete DFA for its language have?
- Exactly one of the following strings is NOT in the language of (a + bb)(b + aa). Which one?
- The regular expression (a(ab)b) is over Σ = {a, b}. How many states does the minimal complete DFA for its language have?
- For the regular language L(r) with r = (aab + abb), the pumping lemma asks for a length p such that every w ∈ L with |w| ≥ p can be split…
- For the regular language L(r) with r = aaaa + ab, the pumping lemma asks for a length p such that every w ∈ L with |w| ≥ p can be split w…
- For the regular language L(r) with r = (ab + ba), the pumping lemma asks for a length p such that every w ∈ L with |w| ≥ p can be split w…