GATE Computer ScienceEasyGATE CS (PYQ pattern)

How many states does the minimal complete DFA for { w ∈ {a, b}* : w begins with a } have?

  1. A. 2
  2. B. 3
  3. C. 4
  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

Exams that ask this topic