Skip to content
Official PYQ · 2008

GATE CS 2008 Q13 — Undecidability

Explain with AI

If LL and L‾\overline{L} are recursively enumerable then LL is

Choose one option
View worked solution

Answer: D

This is a fundamental theorem in the theory of computation regarding the relationship between recursive and recursively enumerable (RE) languages.

Theorem: A language LL is recursive if and only if both LL and its complement L‾\overline{L} are recursively enumerable.

Proof Sketch:

  • If LL is recursive: There exists a Turing Machine (TM) MM that halts on every input ww, accepting if w∈Lw \in L and rejecting if w∉Lw \notin L. Since MM halts on all inputs, it also serves as an recognizer for LL. By swapping the accept and reject states of MM, we get a TM that decides L‾\overline{L}. Thus, both LL and L‾\overline{L} are recursively enumerable.
  • If both LL and L‾\overline{L} are recursively enumerable: Let M1M_1 be the TM that recognizes LL, and M2M_2 be the TM that recognizes L‾\overline{L}. For any input string ww:
    • We can run M1M_1 and M2M_2 in parallel (by interleaving their execution steps).
    • Since ww must belong to either LL or L‾\overline{L}, exactly one of M1M_1 or M2M_2 is guaranteed to halt and accept ww in a finite number of steps.
    • If M1M_1 accepts, we halt and accept.
    • If M2M_2 accepts, we halt and reject.
    Since this combined machine always halts and correctly decides membership in LL, the language LL is recursive.

Therefore, if LL and L‾\overline{L} are recursively enumerable, then LL must be recursive.

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

Published
Report a correction
Keep exploringMore Undecidability questions