请输入您要查询的字词:

 

单词 HaltingProblem
释义

halting problem


The halting problemMathworldPlanetmath is to determine, given a particular input to a particular computer program, whether the program will terminate after a finite number of steps.

The consequences of a solution to the halting problem are far-reaching. Consider some predicateMathworldPlanetmathPlanetmath P(x) regarding natural numbersMathworldPlanetmath; suppose we conjecture that P(x) holds for all x. (Goldbach’s conjecture, for example, takes this form.) We can write a program that will count up through the natural numbers and terminate upon finding some n such that P(n) is false; if the conjecture holds in general, then our program will never terminate. Then, without running the program, we could pass it along to a halting program to prove or disprove the conjecture.

In 1936, Alan Turing proved that the halting problem is undecideable; the argument is presented here informally. Consider a hypothetical program that decides the halting the problem:

AlgorithmMathworldPlanetmath Halt(P, I)
Input: A computer program P and some input I for P
Output: True if P halts on I and false otherwise

The implementation of the algorithm, as it turns out, is irrelevant. Now consider another program:

Algorithm Break(x)
Input: Code x
Output:

begin
         if IsValidCode(x) and Halt(x,x) then

while true do

nothing

else

return true


end

If our halting solution determines that Break(Break) halts, then it will immediately enter an infinite loop; otherwise, Break will return immediately. We must conclude that the Halt program does not decide the halting problem.So for any attempted solution to the halting problem, we can find some input which breaks that solution.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 20:01:45