Computer Science EngineeringVery hard

The minimal complete DFA over {a, b} for strings with no two consecutive a's has how many states (including the dead state)?

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

Correct answer: C. 3

The states are: last symbol not a, last symbol a, and a dead state after aa.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic