Skip to content
Official PYQ · 2001

GATE CS 2001 Q2.7 — Undecidability

Explain with AI

Consider the following problem XX.

Given a Turing machine MM over the input alphabet Σ\Sigma, any state qq of MM and a word w∈Σ∗w \in \Sigma^*, does the computation of MM on ww visit the state of qq?

Which of the following statements about XX is correct?

Choose one option
View worked solution

Answer: B

To determine the nature of problem XX, let us analyze its decidability and partial decidability (recursive enumerability).

1. Undecidability of XX

We can prove that XX is undecidable by reducing the Halting Problem (HPHP) to XX. The Halting Problem asks whether a Turing machine MM halts on input ww.

  • Given any Turing machine MM and input ww, we can construct a modified Turing machine M′M' that behaves exactly like MM, except that whenever MM is about to halt, M′M' transitions to a specially designated state qhaltq_{\text{halt}}.
  • Now, MM halts on ww if and only if M′M' visits the state qhaltq_{\text{halt}} on input ww.
  • If we had a decider for problem XX, we could use it to decide whether M′M' visits qhaltq_{\text{halt}} on ww, thereby deciding the Halting Problem.

Since the Halting Problem is undecidable, problem XX must also be undecidable.

2. Partial Decidability (Recursive Enumerability) of XX

A problem is partially decidable if there exists a Turing machine (semi-decider) that halts and accepts when the answer is "Yes", but may run forever when the answer is "No".

  • We can construct a Turing machine TT that simulates the computation of MM on input ww step-by-step.
  • At each step of the simulation, TT checks if the current state of MM is qq.
  • If MM visits state qq, TT halts and outputs "Yes".
  • If MM never visits state qq, the simulation may run forever, and TT will not halt.

Since we can always recognize the "Yes" instances in a finite number of steps, the problem XX is partially decidable.

Therefore, XX is undecidable but partially decidable.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Undecidability questions