GATE Computer ScienceEasyGATE CS (PYQ pattern)

How many states does the minimal complete DFA for the set of strings over {a, b} that end with abb have?

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

Correct answer: B. 4

One state per matched prefix of abb (0, 1, 2, 3 symbols): 4 states, with the usual KMP fall-back transitions.

More Theory of Computation questions

Exams that ask this topic