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?
- A. 31
- B. 32
- C. 24
- 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
- Let L = { w ∈ {a, b} : every prefix u of w satisfies |na(u) − nb(u)| ≤ 2 }. How many states does the minimal complete DFA for L have?
- Let r = (aab + ab + b)(ba + a). The number of strings of length 7 over {a, b} that are NOT in L(r) is
- Consider the languages: I. HALT = { ⟨M, w⟩ : M halts on w }; II. EQTM = { ⟨M₁, M₂⟩ : L(M₁) = L(M₂) }; III. TOTAL = { ⟨M⟩ : M halts on…
- Which of the following languages can be accepted by a deterministic pushdown automaton by EMPTY STACK (the stack is empty at the end of…
- How many strings of length 12 of the form aⁱbʲcᵏ (i, j, k ≥ 0, i + j + k = 12) satisfy i ≠ j and j ≠ k?
- Let L be the set of binary strings that, read as unsigned numbers MSB first (ε counts as 0 and is accepted), are divisible by 56. How many…