(en.wikipedia.org) Halting problem - Wikipedia

ROAM_REFS: https://en.wikipedia.org/wiki/Halting_problem

In computability theory, the halting problem is the problem of determining, from a description of an arbitrary computer program and an input, whether the program will finish running, or continue to run forever. The halting problem is undecidable, meaning that no general algorithm exists that solves the halting problem for all possible program–input pairs. The problem comes up often in discussions of computability since it demonstrates that some functions are mathematically definable but not computable.

A key part of the formal statement of the problem is a mathematical definition of a computer and program, usually via a Turing machine. The proof then shows, for any program

f
that might determine whether programs halt, that a "pathological" program
g
exists for which
f
makes an incorrect determination. Specifically,
g
is the program that, when called with some input, passes its own source and its input to f and does the opposite of what
f
predicts
g
will do. The behavior of
f
on
g
shows undecidability as it means no program
f
will solve the halting problem in every possible case.

Local Graph

org-roam 1ed495bd-4fa7-4386-820e-da7d8fa037fe (en.wikipedia.org) Halting problem - ... //en.wikipedia.org/wiki/Computability_theory_(computer_science) https://en.wikipedia.org/wiki/Computability_theory_(computer_science) 1ed495bd-4fa7-4386-820e-da7d8fa037fe->//en.wikipedia.org/wiki/Computability_theory_(computer_science) //en.wikipedia.org/wiki/Computer_program https://en.wikipedia.org/wiki/Computer_program 1ed495bd-4fa7-4386-820e-da7d8fa037fe->//en.wikipedia.org/wiki/Computer_program //en.wikipedia.org/wiki/Undecidable_problem https://en.wikipedia.org/wiki/Undecidable_problem 1ed495bd-4fa7-4386-820e-da7d8fa037fe->//en.wikipedia.org/wiki/Undecidable_problem //en.wikipedia.org/wiki/Algorithm https://en.wikipedia.org/wiki/Algorithm 1ed495bd-4fa7-4386-820e-da7d8fa037fe->//en.wikipedia.org/wiki/Algorithm //en.wikipedia.org/wiki/Computability https://en.wikipedia.org/wiki/Computability 1ed495bd-4fa7-4386-820e-da7d8fa037fe->//en.wikipedia.org/wiki/Computability //en.wikipedia.org/wiki/Definable_set https://en.wikipedia.org/wiki/Definable_set 1ed495bd-4fa7-4386-820e-da7d8fa037fe->//en.wikipedia.org/wiki/Definable_set //en.wikipedia.org/wiki/Computable_function https://en.wikipedia.org/wiki/Computable_function 1ed495bd-4fa7-4386-820e-da7d8fa037fe->//en.wikipedia.org/wiki/Computable_function //en.wikipedia.org/wiki/Turing_machine https://en.wikipedia.org/wiki/Turing_machine 1ed495bd-4fa7-4386-820e-da7d8fa037fe->//en.wikipedia.org/wiki/Turing_machine 2a07e4ea-610b-4c9a-bb84-d961fb2450e5 Code and Coffee Book Club 2a07e4ea-610b-4c9a-bb84-d961fb2450e5->1ed495bd-4fa7-4386-820e-da7d8fa037fe