universal Turing machine
A universal Turing machine is a Turing machine
with a single binaryone-way read-only input tape, on which it expects to find the encoding of an arbitrary Turing machine . The set of all Turing machine encodings mustbe prefix-free, so that no special end-marker or ‘blank’ is needed to recognizea code’s end. Having transferred the description of onto its worktape, then proceeds to simulate the behaviour of on the remainingcontents of the input tape. If halts, then cleans up its worktape,leaving it with just the output of , and halts too.
If we denote by the partial function computed by machine ,and by the encoding of machine as a binary string,then we have .
There are two kinds of universal Turing machine, depending on whether theinput tape alphabet of the simulated machine is or just .The first kind is a plain Universal Turing machine;while the second is a prefix Universal Turing machine,which has the nice propertythat the set of inputs on which it halts is prefix free.
The letter is commonly used to denote a fixed universal machine, whosetype is either mentioned explicitly or assumed clear from context.