GATE Computer ScienceModerateGATE CSE · ISRO

Over {a, b}, L = { w : |w| ≥ 3 and the third symbol from the right end is a }. What is the number of states in its minimal complete DFA?

  1. A. 7
  2. B. 9
  3. C. 8
  4. D. 16

Correct answer: C. 8

The DFA must remember the last three symbols: 2³ = 8 states are necessary and sufficient.

More Theory of Computation questions

Exams that ask this topic