Question

Which of the following languages are undecidable? Note that ⟨M⟩\langle M \rangle indicates encoding of the Turing machine MM.

L1={⟨M⟩∣L(M)=∅}L2={⟨M,w,q⟩∣M on input w reaches state q in exactly 100 steps}L3={⟨M⟩∣L(M) is not recursive}L4={⟨M⟩∣L(M) contains at least 21 members}\begin{aligned} L_1 &= \{\langle M \rangle \mid L(M) = \emptyset\} \\ L_2 &= \{\langle M, w, q \rangle \mid M \text{ on input } w \text{ reaches state } q \text{ in exactly 100 steps}\} \\ L_3 &= \{\langle M \rangle \mid L(M) \text{ is not recursive}\} \\ L_4 &= \{\langle M \rangle \mid L(M) \text{ contains at least 21 members}\} \end{aligned}
Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2020 answer key

Solution

Apply Rice's Theorem and decider simulation to test the decidability of each language.

Analysis of each language:

  • L1={⟨M⟩∣L(M)=∅}L_1 = \{\langle M \rangle \mid L(M) = \emptyset\}: The emptiness problem for Turing machines is a non-trivial property of recursively enumerable languages. By Rice's Theorem, L1L_1 is undecidable (in fact, co-r.e. complete).
  • L2={⟨M,w,q⟩∣M on input w reaches state q in exactly 100 steps}L_2 = \{\langle M, w, q \rangle \mid M \text{ on input } w \text{ reaches state } q \text{ in exactly 100 steps}\}: This is a bounded simulation. A universal Turing machine can simulate MM on ww for exactly 100 steps. If state qq is reached on or before step 100, accept; otherwise, reject. Since the simulation always halts in bounded time, L2L_2 is decidable.
  • L3={⟨M⟩∣L(M) is not recursive}L_3 = \{\langle M \rangle \mid L(M) \text{ is not recursive}\}: Being recursive is a non-trivial semantic property of r.e. languages. By Rice's Theorem, L3L_3 is undecidable.
  • L4={⟨M⟩∣L(M) contains at least 21 members}L_4 = \{\langle M \rangle \mid L(M) \text{ contains at least 21 members}\}: Containing at least 21 strings is a non-trivial property of the language recognized by MM. By Rice's Theorem, L4L_4 is undecidable.

Therefore, the undecidable languages are L1,L3L_1, L_3, and L4L_4 only.

Final answer

A

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2020 Computer Science and Information Technology (CS)
Question
36 of 65, printed as CS Q.26
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.