Skip to content
Official PYQ · 1987

GATE CS 1987 Q2l — Turing Machines

Explain with AI
State whether the following statement are TRUE or FALSE.

AA is recursive if both AA and its complement are accepted by Turing machines.
View worked solution

Answer: 1

The given statement is TRUE (represented by 1).

Explanation:

A language AA is recursive (decidable) if and only if both AA and its complement Aˉ\bar{A} are recursively enumerable (accepted by Turing machines).

  • If AA is recursive: There exists a Turing machine MM that halts on all inputs and decides AA. We can construct another halting Turing machine M′M' that decides Aˉ\bar{A} by simply swapping the accept and reject behaviors of MM. Since both MM and M′M' halt on all inputs, they both accept AA and Aˉ\bar{A} respectively.
  • If both AA and Aˉ\bar{A} are accepted by Turing machines: Let M1M_1 be the Turing machine that accepts AA, and M2M_2 be the Turing machine that accepts Aˉ\bar{A}. We can construct a new Turing machine MM to decide AA by running M1M_1 and M2M_2 in parallel (using step-by-step interleaving) on any input ww:
    • Since ww must belong to either AA or Aˉ\bar{A}, exactly one of M1M_1 or M2M_2 is guaranteed to eventually halt and accept ww.
    • If M1M_1 accepts, MM halts and accepts.
    • If M2M_2 accepts, MM halts and rejects.
    Since MM is guaranteed to halt on every input, the language AA is recursive.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Turing Machines questions