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)?

  1. A. I, II and III only
  2. B. II only
  3. C. I and IV only
  4. 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

Exams that ask this topic