GATE Computer ScienceVery hardGATE CS

The minimal complete DFA of a language L has 5 states. What is the largest number of states that the minimal complete DFA of the Kleene star L* can ever need?

  1. A. 31
  2. B. 32
  3. C. 24
  4. D. 20

Correct answer: C. 24

The tight worst-case bound for the star of an n-state DFA language is 2ⁿ⁻¹ + 2ⁿ⁻², which for n = 5 is 16 + 8 = 24. Plain 2ⁿ = 32 overcounts.

More Theory of Computation questions

Exams that ask this topic