Skip to content
Official PYQ · 2016

GATE CS 2016 Set 2 Q44 — Turing Machines

Explain with AI

Consider the following languages.

  • L1={⟨M⟩∣M takes at least 2016 steps on some input}L_{1} = \left\{\left\langle M \right\rangle \mid M \text{ takes at least 2016 steps on some input} \right\},
  • L2={⟨M⟩∣M takes at least 2016 steps on all inputs}L_{2} = \left\{\left\langle M \right\rangle \mid M \text{ takes at least 2016 steps on all inputs} \right\} and
  • L3={⟨M⟩∣M accepts ϵ}L_{3} = \left\{\left\langle M \right\rangle \mid M \ \text{accepts }\epsilon\right\},

where for each Turing machine M,⟨M⟩M, \left\langle M \right\rangle denotes a specific encoding of MM. Which one of the following is TRUE?

Choose one option
View worked solution

Answer: C

To determine whether the languages L1L_1, L2L_2, and L3L_3 are recursive (decidable), we analyze each one individually:

1. Analysis of L1L_1 and L2L_2

For any Turing machine MM, in 20162016 steps, the read-write head can scan at most 20162016 cells of the input tape. Consequently, any input symbols beyond the first 20162016 positions cannot influence the computation of MM within the first 20162016 steps.

  • Let Σ\Sigma be the input alphabet of MM. The number of possible input prefixes of length at most 20162016 is finite (specifically, ∑i=02016∣Σ∣i\sum_{i=0}^{2016} |\Sigma|^i).
  • To decide L1L_1 or L2L_2, a decider can simulate MM on each of these finitely many inputs for at most 20162016 steps.
  • For L1L_1: If MM takes ≥2016\ge 2016 steps on at least one of these finite inputs, the decider accepts. Otherwise, it rejects. Since the simulation is guaranteed to terminate in a finite number of steps, L1L_1 is recursive.
  • For L2L_2: If MM takes ≥2016\ge 2016 steps on all of these finite inputs, the decider accepts. Otherwise, it rejects. Since this simulation also always terminates, L2L_2 is recursive.

2. Analysis of L3L_3

L3={⟨M⟩∣M accepts ϵ}L_3 = \{\langle M \rangle \mid M \text{ accepts } \epsilon\} is the acceptance problem for the empty string.

  • The property "accepts ϵ\epsilon" is a non-trivial semantic property of recursively enumerable languages (some Turing machines accept ϵ\epsilon, while others do not).
  • By Rice's Theorem, any non-trivial semantic property of Turing machines is undecidable. Thus, L3L_3 is not recursive (it is recursively enumerable but not recursive).

Hence, L1L_1 and L2L_2 are recursive, and L3L_3 is not recursive.

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

Published
Report a correction
Keep exploringMore Turing Machines questions