GATE Computer ScienceVery hardGATE CS
Let L = { w ∈ {a, b}* : w begins with aba, or (w ends with b and n_a(w) ≡ 0 (mod 3)) }. The minimal complete DFAs for L and for its reversal Lᴿ have m and n states respectively. What is (m, n)?
- A. (8, 16)
- B. (8, 14)
- C. (8, 8)
- D. (14, 8)
Correct answer: B. (8, 14)
Building the minimal DFA for L gives 8 states; reversing the language and applying subset construction followed by minimisation gives 14 states (checked by exhaustive Myhill–Nerode computation). Reversal need not preserve the size of the minimal DFA, and here it grows because the prefix condition must now be verified last.
More Theory of Computation questions
- Consider the following claims about an arbitrary regular language L over Σ. I. { w : ww ∈ L } is regular. II. { w : w wᴿ ∈ L } is regular…
- Let D be a DFA and G a context-free grammar over the same alphabet. Consider the problems: I. Is L(D) ⊆ L(G)? II. Is L(G) ⊆ L(D)? III. Is…
- A single-tape Turing machine has blank B and starts in q0 on the leftmost cell of a binary numeral (MSB at the left). Rules: δ(q0,0) =…
- For a Turing machine M (given by its encoding ⟨M⟩) consider these sets: I. { ⟨M⟩ : M has at least 481 states } II. { ⟨M⟩ : L(M) contains…
- Which of the following languages are deterministic context-free? I. { aⁱbʲcᵏ : i = j or j = k } II. { aⁱbʲcᵏ : i = j, k ≥ 0 } III. { w c…
- Let L = { aⁿ : n ≥ 5 and (n is divisible by 4 or n is divisible by 6) }. How many states does the minimal complete DFA for L have?