halting problem

(redirected from Halt problem)

halting problem

The problem of determining in advance whether a particular program or algorithm will terminate or run forever. The halting problem is the canonical example of a provably unsolvable problem. Obviously any attempt to answer the question by actually executing the algorithm or simulating each step of its execution will only give an answer if the algorithm under consideration does terminate, otherwise the algorithm attempting to answer the question will itself run forever.

Some special cases of the halting problem are partially solvable given sufficient resources. For example, if it is possible to record the complete state of the execution of the algorithm at each step and the current state is ever identical to some previous state then the algorithm is in a loop. This might require an arbitrary amount of storage however. Alternatively, if there are at most N possible different states then the algorithm can run for at most N steps without looping.

A program analysis called termination analysis attempts to answer this question for limited kinds of input algorithm.
References in periodicals archive ?
She was acting to halt problem behaviour at the school, which had been a factor in its failure to impress the inspection team from the Office for Standards in Education.
Magistrates handed 13-year-old Brandon Caine-Newman, from Redditch, with an antisocial behaviour order to halt problems said by police to have been sparked by him and two other youths.
The Guisborough mayor has fired off letters to pubs, clubs and hot food takeaways in the town, urging support to halt problems in advance of proposed 24-hour national drinking laws.