Question
Consider the following languages.
,
and
,
where for each Turing machine , denotes a specific encoding of . Which one of the following is TRUE?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2016 answer key
Solution
Check whether bounding execution steps allows decidability by examining inputs of bounded length.
Examine and :
In at most 2016 computation steps, the read/write head of any Turing machine can visit at most the first 2016 cells of the input tape. Any symbols beyond the 2016th position on the tape can never be reached or influence the execution during the first 2016 steps.
Consequently, the first 2016 steps of on any input string are identical to its execution on the prefix of of length .
Since the input alphabet is finite, the number of distinct input strings of length at most 2016 is finite:
A universal Turing machine simulator can test on each of these finitely many strings for at most 2016 steps:
- For : If takes steps on at least one of these strings, accept; otherwise reject. This always halts, so is recursive (decidable).
- For : If takes steps on every string in this finite set, it will take steps on all inputs of any length. Accept if it holds for all, reject otherwise. This always halts, so is recursive (decidable).
Examine :
This language asks whether a given Turing machine accepts the empty input. By reduction from the Halting Problem (or by Rice's Theorem, since accepting is a non-trivial semantic property of recursively enumerable languages), is undecidable. Thus is not recursive.
Therefore, and are recursive, and is not recursive.
C
Believing is undecidable because it specifies 'on all inputs', overlooking that a bound on the number of steps strictly bounds the relevant input length to a finite set.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2016 Computer Science and Information Technology (CS) Session 2
- Question
- 54 of 65, printed as CS Q.44
- 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.