Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/ii/paper-1/12j/a/solution

The upper register index is the largest register number occurring in an instruction of , with value zero if only register is used. A configuration records the current state and the contents of every register up to that index.
For input , let be the initial configuration: the designated initial state, the words of in the input registers, and the empty word in every remaining register. Recursively, if is halting, keep it fixed; otherwise let be the unique configuration into which transforms it. The resulting sequence
is the computation sequence.

New to topics? Read the docs here!