GATE Computer ScienceModerateGATE CS (PYQ pattern)

A DFA has 8 states. To decide whether the language it accepts is infinite, it suffices to check whether it accepts some string whose length lies in the range

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

Correct answer: D. 8 to 15

The language is infinite iff some accepted string has length n ≤ |w| < 2n: a string of length ≥ n pumps, and a shortest pumpable accepted string has length < 2n. With n = 8 this is 8 to 15.

More Theory of Computation questions

Exams that ask this topic