Consider the following problem .
Given a Turing machine over the input alphabet , any state of and a word , does the computation of on visit the state of ?
Which of the following statements about is correct?
View worked solution
Answer: B
To determine the nature of problem , let us analyze its decidability and partial decidability (recursive enumerability).
1. Undecidability of
We can prove that is undecidable by reducing the Halting Problem () to . The Halting Problem asks whether a Turing machine halts on input .
- Given any Turing machine and input , we can construct a modified Turing machine that behaves exactly like , except that whenever is about to halt, transitions to a specially designated state .
- Now, halts on if and only if visits the state on input .
- If we had a decider for problem , we could use it to decide whether visits on , thereby deciding the Halting Problem.
Since the Halting Problem is undecidable, problem must also be undecidable.
2. Partial Decidability (Recursive Enumerability) of
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 that simulates the computation of on input step-by-step.
- At each step of the simulation, checks if the current state of is .
- If visits state , halts and outputs "Yes".
- If never visits state , the simulation may run forever, and will not halt.
Since we can always recognize the "Yes" instances in a finite number of steps, the problem is partially decidable.
Therefore, is undecidable but partially decidable.
Free practice · Your answers on this page are not saved.
