GATE Computer ScienceVery hardGATE CS
Consider the languages: I. HALT = { ⟨M, w⟩ : M halts on w }; II. EQ_TM = { ⟨M₁, M₂⟩ : L(M₁) = L(M₂) }; III. TOTAL = { ⟨M⟩ : M halts on every input }; IV. E_TM = { ⟨M⟩ : L(M) = ∅ }. Which of them are neither recursively enumerable nor co-recursively enumerable (neither the language nor its complement is recursively enumerable)?
- A. I, II and III only
- B. II only
- C. I and IV only
- D. II and III only
Correct answer: D. II and III only
HALT is r.e. but not co-r.e., and E_TM is co-r.e. but not r.e., so each has an r.e. side. EQ_TM and TOTAL are complete for the second level of the arithmetical hierarchy (not in Σ₁ and not in Π₁), so neither they nor their complements are r.e.
More Theory of Computation questions
- 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…
- Let L = { w ∈ {a, b} : |w| ≡ 0 (mod 3) and w contains ab as a substring }. How many states does the minimal complete DFA for L have?
- Over {a, b}, let L = { w : the number of a's in w is ≡ 1 (mod 3) and w ends with b }. How many states does the minimal complete DFA for L…
- How many strings of length 7 over {a, b} do not contain aa as a substring?