GATE / CS ARCHIVE

GATE CSE 2014 SET 2 / QUESTION 35

GATE CSE 2014 Set 2 Q35

Theory of Computation · Decidability & Computability · Full GATE CSE 2014 Set 2 paper

GATE 2014 Set 2, Q35 2 marks · MCQ
Report issue

Decidability & Computability

Question 35, GATE 2014: Let ⟨M⟩ be a binary encoding of a Turing machine. Define L={⟨M⟩:M accepts at least one string of length 2014}. What is L? A decidable and recursively enumerable; B undecidable but recursively enumerable; C undecidable and not recursively enumerable; D decidable but not recursively enumerable.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

1. Set up the reasoning. Although there are finitely many length-2014 inputs, a simulation on one may never halt. To recognize L, interleave steps of all 22014 simulations rather than running them to completion one at a time.

2. Derive the result. Dovetail M on all finitely many binary strings of length 2014; accept its encoding when any simulation accepts, so L is r.e. It is undecidable: from machine N and input w, build M that on one fixed 2014-bit string simulates N(w), accepting iff that simulation accepts, and rejects all other inputs. A decider for L would decide acceptance. Thus B.

3. Check the interpretation. Finiteness of the input set does not decide nonacceptance. For undecidability, encode an arbitrary acceptance problem into a machine that simulates that problem on one fixed length-2014 word and rejects other words. A decision procedure for L would decide the original acceptance problem.

Original paper, page 39 · Answer key