GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 14(a)

Reduction machine: simulate a fixed computation

Theory of Computation · Decidability & Computability · Full GATE CSE 2002 paper

GATE 2002, Q14(a) Descriptive
Report issue

Decidability & Computability

Question 14(a), GATE 2002: Prove undecidable the language of machines M that halt and output 1 on every input, by reducing the known halting problem {⟨M′,x⟩:M′ halts on x}. Construct M from M′,x. Original14(a): On input w, describe the first main step M performs.
Question 14(a), GATE 2002: Prove undecidable the language of machines M that halt and output 1 on every input, by reducing the known halting problem {⟨M′,x⟩:M′ halts on x}. Construct M from M′,x. Original14(a): On input w, describe the first main step M performs.
Tap to enlarge
Answer & solution

Answer: Ignore input w and simulate M′ on the hard-coded input x. (no official key was published)

Given a halting-problem instance ⟨M′,x⟩, effectively construct a machine M with M′ and x embedded in its finite description. On arbitrary input w, ignore w and simulate M′ on x. If that computation never halts, this simulation never proceeds to the next step. The construction itself does not need to decide whether M′ halts.

Original paper, page 8