Question:

Given a TM \(M\), a state \(q\), and input \(w\), determine whether computation of \(M\) on \(w\) ever visits state \(q\).

Show Hint

If YES instances can be recognized but NO instances may loop forever, the problem is recursively enumerable (partially decidable).
Updated On: Jun 25, 2026
  • Problem is decidable
  • Problem is undecidable but partially decidable
  • Problem is undecidable and not even partially decidable
  • Problem is not a decision problem
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Concept: This is known as a reachability problem for Turing machine configurations.

Step 1:
Observe the YES cases.
If state \(q\) is visited, we can simulate \(M\). Eventually we observe the visit and accept.

Step 2:
Observe the NO cases.
If state \(q\) is never visited and the machine loops forever, we may never know. Thus no algorithm can always halt and answer NO.

Step 3:
Classification.
Hence the problem is \[ \text{Undecidable} \] but \[ \text{Partially Decidable}. \]
Was this answer helpful?
0
0