5 questions to test your understanding
The Halting Problem H = {(M, w) | M halts on w} is recursively enumerable but not recursive. What does this imply about its complement H̄ = {(M, w) | M does not halt on w}?
A Turing machine M accepts all strings in language L and loops forever on all strings not in L. What class does L belong to?
A language L is recursive (decidable) if and only if both L and its complement L̄ are recursively enumerable.
Nearly every recursively enumerable language is also recursive, because any Turing machine that accepts a language can be modified to also reject non-members by detecting loops.
Explain why the Halting Problem is recursively enumerable but not recursive, using the definitions of semi-decidability and decidability.