Skip to content
Official PYQ · 2003

GATE CS 2003 Q54 — Undecidability

Explain with AI

Define languages L0L_0 and L1L_1 as follows :

  • L0={⟨M,w,0⟩∣M halts on w}L_0 = \{\langle M, w, 0 \rangle \mid M \text{ halts on }w\}
  • L1={⟨M,w,1⟩∣M does not halts on w}L_1 = \{\langle M, w, 1 \rangle \mid M \text{ does not halts on }w\}

Here ⟨M,w,i⟩\langle M, w, i \rangle is a triplet, whose first component MM is an encoding of a Turing
Machine, second component ww is a string, and third component ii  is a bit.

Let L=L0∪L1L = L_0 \cup L_1. Which of the following is true?

Choose one option
View worked solution

Answer: D

To determine the status of the language L=L0∪L1L = L_0 \cup L_1 and its complement L′L', let us analyze their properties using reductions from the halting problem and its complement.

Recall the definition of the Halting Language (HH) and its complement (HcH^c):

  • H={⟨M,w⟩∣M halts on w}H = \{\langle M, w \rangle \mid M \text{ halts on } w\} (Recursively Enumerable (RE), but not Recursive)
  • Hc={⟨M,w⟩∣M does not halt on w}H^c = \{\langle M, w \rangle \mid M \text{ does not halt on } w\} (Not Recursively Enumerable)

1. Analyzing LL

By definition, a triplet ⟨M,w,i⟩∈L\langle M, w, i \rangle \in L if and only if:

  • i=0i = 0 and MM halts on ww, OR
  • i=1i = 1 and MM does not halt on ww.

We can reduce the non-halting problem HcH^c to LL using a mapping reduction f(⟨M,w⟩)=⟨M,w,1⟩f(\langle M, w \rangle) = \langle M, w, 1 \rangle:

⟨M,w⟩∈Hc  ⟺  ⟨M,w,1⟩∈L\langle M, w \rangle \in H^c \iff \langle M, w, 1 \rangle \in L

Since Hc≤mLH^c \le_m L and HcH^c is not recursively enumerable, LL is not recursively enumerable.


2. Analyzing L′L'

The complement language L′L' contains all strings that are either malformed (which is a recursive set and does not affect RE-ness) or triplets ⟨M,w,i⟩\langle M, w, i \rangle such that:

  • i=0i = 0 and MM does not halt on ww, OR
  • i=1i = 1 and MM halts on ww.

We can reduce the non-halting problem HcH^c to L′L' using a mapping reduction g(⟨M,w⟩)=⟨M,w,0⟩g(\langle M, w \rangle) = \langle M, w, 0 \rangle:

⟨M,w⟩∈Hc  ⟺  ⟨M,w,0⟩∈L′\langle M, w \rangle \in H^c \iff \langle M, w, 0 \rangle \in L'

Since Hc≤mL′H^c \le_m L' and HcH^c is not recursively enumerable, L′L' is not recursively enumerable.


Conclusion

Since neither LL nor L′L' is recursively enumerable, the correct option is D.

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

Published
Report a correction
Keep exploringMore Undecidability questions