TOPICS
Search

Halting Probability


The halting probability Omega_C of a self-delimiting Turing machine C is the probability that a stream of independent fair bits begins with a halting program for C. The halting programs form a prefix-free code, and

 Omega_C=sum_(p:C(p) halts)2^(-|p|),

where |p| is the length of program p in bits. The Kraft inequality ensures 0<=Omega_C<=1 (Calude et al. 2002, p. 362).

If C simulates every self-delimiting Turing machine with at most a constant additive overhead in program length, then Omega_C is a Chaitin's constant (Calude et al. 2002, p. 362). Merely being a universal Turing machine in the usual computability sense does not ensure this stronger property (Calude et al. 2002, p. 362).

For the compressed register machine U of Calude et al. (2002, p. 366), let a(n) count the halting programs of total length 7n bits, including both program and data and excluding run-time errors. These machine-specific counts begin 1, 1, 3, 8, 50, 311, ... at n=1 (OEIS A400878; Calude et al. 2002, p. 367). Since each character occupies 7 bits,

 Omega_U=sum_(n=1)^infty(a(n))/(128^n).

See also

Algorithmic Probability, Chaitin's Constant, Halting Problem, Kraft Inequality, Prefix-Free Code, Register Machine

Explore with Wolfram|Alpha

References

Calude, C. S.; Dinneen, M. J.; and Shu, C.-K. "Computing a Glimpse of Randomness." Exper. Math. 11, 361-370, 2002. https://doi.org/10.1080/10586458.2002.10504481.Sloane, N. J. A. Sequence A400878 in "The On-Line Encyclopedia of Integer Sequences."

Cite this as:

Weisstein, Eric W. "Halting Probability." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/HaltingProbability.html

Subject classifications