Questions: Recursively Enumerable and Co-RE Languages

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

You build a Turing machine M that, given ⟨P, x⟩, simulates P on x and accepts if P halts — but loops forever if P does not halt. What can you conclude about the halting problem?

AM decides the halting problem, since it correctly identifies all halting instances
BM only recognizes the halting problem — it is a recognizer, not a decider, because it loops on non-halting instances rather than rejecting them
CM is impossible to build, since the halting problem is undecidable
DM proves the halting problem is in co-RE but not in RE
Question 2 Multiple Choice

A computer scientist has M₁ (recognizes language L, may loop on strings not in L) and M₂ (recognizes L̄, may loop on strings in L). She claims this is sufficient to decide L. Is she correct?

ANo — a recognizer for L̄ only provides information about strings outside L and cannot help decide membership in L
BYes — run M₁ and M₂ in parallel; one of them is guaranteed to eventually accept any input, giving the correct answer and always halting
COnly if both machines halt within polynomial time
DNo — having recognizers for both L and L̄ is equivalent to having a single recognizer for L
Question 3 True / False

If language L is recursively enumerable, then its complement L̄ is also recursively enumerable.

TTrue
FFalse
Question 4 True / False

A Turing machine that loops forever on inputs not in L — never halting with a reject — still qualifies as a recognizer for L.

TTrue
FFalse
Question 5 Short Answer

Why is a language decidable if and only if it is both RE and co-RE? Explain using the definitions of recognition and decision.

Think about your answer, then reveal below.