← RGPV CS-501 Theory of Computation December 2025 Solved Question Paper
← RGPV CS-501 Theory of Computation May 2023 Solved Paper
← RGPV CS-501 Theory of Computation November 2023 Solved Paper
← RGPV CS-501 (CBGS) Theory of Computation November 2019 Solved Paper
Question
Explain what it means for the Turing machine halting problem to be undecidable.
Asked in: CS-501 | November 2023 | 7(b)
Write a short note on the halting problem.
Asked in: CS-501 | November 2023 | 8(ii)
Define the halting problem and explain its undecidability.
Asked in: CS-501 | December 2025 | 8(b)
Write a short note on the halting problem (any three of Q8).
Asked in: CS-501 | May 2023 | 8(i)
Write a short note on the halting problem of a Turing machine.
Asked in: CS-501 | November 2019 | 8(iii)
Answer
The halting problem asks whether an arbitrary encoded Turing machine M eventually halts when run on input w. Its language is HALT={⟨M,w⟩ | M halts on w}. Halting includes both accepting and rejecting termination.
Proof by contradiction
Assume a total computable procedure H(M,w) returns yes if M halts on w and no otherwise. Construct a machine D that receives a machine encoding x, calls H(x,x), loops forever if H returns yes, and halts if H returns no. Invalid encodings can be rejected.
D(x):
if H(x,x) == yes:
loop forever
else:
halt
Now run D on its own encoding d. If H(d,d) says yes, D loops, contradicting H. If H(d,d) says no, D halts, again contradicting H. Both possible outputs are wrong. Therefore H cannot exist and HALT is undecidable.
Recognizability and implications
HALT is recognizable: simulate the encoded machine and accept when it halts. If it never halts, the simulator may also run forever. This does not decide HALT because a decider must terminate on all inputs. The theorem does not prohibit proving termination for particular programs or restricted classes; it prohibits a universally correct terminating algorithm for arbitrary machines and inputs.

← RGPV CS-501 Theory of Computation December 2025 Solved Question Paper
← RGPV CS-501 Theory of Computation May 2023 Solved Paper
← RGPV CS-501 Theory of Computation November 2023 Solved Paper
← RGPV CS-501 (CBGS) Theory of Computation November 2019 Solved Paper
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion