halting problem
halting problem
Some special cases of the halting problem are partiallysolvable given sufficient resources. For example, if it ispossible to record the complete state of the execution of thealgorithm at each step and the current state is ever identicalto some previous state then the algorithm is in a loop. Thismight require an arbitrary amount of storage however.Alternatively, if there are at most N possible differentstates then the algorithm can run for at most N steps withoutlooping.
A program analysis called termination analysis attempts toanswer this question for limited kinds of input algorithm.