GATE Computer ScienceHardGATE CS (PYQ pattern)

L = { w ∈ {a, b}* : any two a's in w are separated by at least two b's }. How many states does the minimal complete DFA for L have?

  1. A. 3
  2. B. 5
  3. C. 6
  4. D. 4

Correct answer: D. 4

States: 'free' (no a within the last two symbols), 'a just read', 'a read then one b', and the dead state after a violation: 4.

More Theory of Computation questions

Exams that ask this topic