GATE Computer ScienceModerateGATE CS (PYQ pattern)

The regular expression (a(ab)*b)* is over Σ = {a, b}. How many states does the minimal complete DFA for its language have?

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

Correct answer: A. 4

States: start/accept, inside a(…), expecting b after 'a' in (ab)*, and dead: enumeration gives 4.

More Theory of Computation questions

Exams that ask this topic