Question

Let ⟨M⟩\langle M \rangle be the encoding of a Turing machine as a string over Σ={0,1}\Sigma = \{0, 1\}. Let

L={⟨M⟩∣M is a Turing machine that accepts a string of length 2014}.L = \{ \langle M \rangle \mid M \text{ is a Turing machine that accepts a string of length } 2014 \}.

Then, LL is

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2014 answer key

Solution

Apply Rice's theorem to establish undecidability and design a dovetailing simulation to prove recursive enumerability.

  1. Language Specification:

    L={⟨M⟩∣∃w∈{0,1}2014 such that M accepts w}.L = \{ \langle M \rangle \mid \exists w \in \{0, 1\}^{2014} \text{ such that } M \text{ accepts } w \}.
  2. Undecidability (Rice's Theorem):

    • The property P={L(M)∣L(M)∩{0,1}2014≠∅}P = \{ L(M) \mid L(M) \cap \{0, 1\}^{2014} \ne \emptyset \} depends purely on the language recognized by MM, not its syntactic encoding (semantic property).
    • Non-triviality:
      • There exists a TM M1M_1 with L(M1)=Σ∗L(M_1) = \Sigma^* (accepts strings of length 2014), so ⟨M1⟩∈L\langle M_1 \rangle \in L.
      • There exists a TM M0M_0 with L(M0)=∅L(M_0) = \emptyset (accepts nothing), so ⟨M0⟩∉L\langle M_0 \rangle \notin L.
    • By Rice's theorem, LL is undecidable.
  3. Recursive Enumerability (Turing Recognizability):

    • The set of strings of length 2014 is finite (exactly 220142^{2014} strings).
    • We can construct an enumerator / recognizer M′M' that dovetails the execution of MM on all 220142^{2014} candidate strings in parallel (step 1 for all strings, step 2 for all strings, and so on).
    • If MM accepts at least one string of length 2014, the simulation will halt and accept in finite steps.
    • If MM accepts none, the simulation runs indefinitely.
    • Thus, LL is semi-decidable (recursively enumerable).
  4. Conclusion:
    LL is undecidable but recursively enumerable, which is option (B).

Final answer

B

Common trap

Thinking that because the length is fixed (2014), the problem is decidable; a Turing machine can still run infinitely on a single finite input string without halting.

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

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 2
Question
45 of 65, printed as CS Q.35
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.