Question
Let be the encoding of a Turing machine as a string over . Let
Then, is
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.
-
Language Specification:
-
Undecidability (Rice's Theorem):
- The property depends purely on the language recognized by , not its syntactic encoding (semantic property).
- Non-triviality:
- There exists a TM with (accepts strings of length 2014), so .
- There exists a TM with (accepts nothing), so .
- By Rice's theorem, is undecidable.
-
Recursive Enumerability (Turing Recognizability):
- The set of strings of length 2014 is finite (exactly strings).
- We can construct an enumerator / recognizer that dovetails the execution of on all candidate strings in parallel (step 1 for all strings, step 2 for all strings, and so on).
- If accepts at least one string of length 2014, the simulation will halt and accept in finite steps.
- If accepts none, the simulation runs indefinitely.
- Thus, is semi-decidable (recursively enumerable).
-
Conclusion:
is undecidable but recursively enumerable, which is option (B).
B
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.