is recursive if both and its complement are accepted by Turing machines.
View worked solution
Answer: 1
The given statement is TRUE (represented by 1).
Explanation:
A language is recursive (decidable) if and only if both and its complement are recursively enumerable (accepted by Turing machines).
- If is recursive: There exists a Turing machine that halts on all inputs and decides . We can construct another halting Turing machine that decides by simply swapping the accept and reject behaviors of . Since both and halt on all inputs, they both accept and respectively.
- If both and are accepted by Turing machines: Let be the Turing machine that accepts , and be the Turing machine that accepts . We can construct a new Turing machine to decide by running and in parallel (using step-by-step interleaving) on any input :
- Since must belong to either or , exactly one of or is guaranteed to eventually halt and accept .
- If accepts, halts and accepts.
- If accepts, halts and rejects.
Free practice · Your answers on this page are not saved.
