UGC NET Paper 2 (Computer Science)Hard

The minimum number of states in a DFA over {0, 1} accepting exactly the strings that end with 00 is:

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

Correct answer: A. 3

One state tracks no trailing zero, one tracks exactly one trailing zero, and one (accepting) tracks two or more trailing zeros; these three states are pairwise distinguishable.

More UGC NET Computer Science and Applications questions

Exams that ask this topic