For a Turing machine \(M, ⟨M⟩\) denotes an encoding of \(M\). Consider the…

GATE · 2021 · CS · Set 1 · Computer Science & IT

For a Turing machine M,⟨M⟩M, ⟨M⟩ denotes an encoding of MM. Consider the following two languages.

L1={⟨M⟩∣M takes more than 2021 steps on all inputs}L2={⟨M⟩∣M takes more than 2021 steps on some input}\begin{array}{ll} L_1 = \{ \langle M \rangle \mid M \text{ takes more than } 2021 \text{ steps on all inputs} \} \\ L_2 = \{ \langle M \rangle \mid M\text{ takes more than } 2021 \text{ steps on some input} \} \end{array}

Which one of the following options is correct?

  1. A.

    Both L1L_1 and L2L_2 are decidable.

  2. B.

    L1L_1 is decidable and L2L_2 is undecidable

  3. C.

    L1L_1 is undecidable and L2L_2 is decidable

  4. D.

    Both L1L_1 and L2L_2 are undecidable

Attempted by 161 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…