GATE CS 2021, set 1 · Question 49 · Theory of Computation · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

For a Turing machine M, ⟨ M ⟩ denotes an encoding of M. Consider the following two languages.
L₁ = {⟨ M ⟩ | M takes more than 2021 steps on all inputs} ; L₂ = {⟨ M ⟩ | M takes more than 2021 steps on some input}
Which one of the following options is correct?

  1. (A) Both L₁ and L₂ are decidable.
  2. (B) L₁ is decidable and L₂ is undecidable.
  3. (C) L₁ is undecidable and L₂ is decidable.
  4. (D) Both L₁ and L₂ are undecidable.
Answer

Answer (A)

Answer from the official GATE CS 2021 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes