Universal Turing Machine

Definition. A universal Turing machine is a Turing machine UU that takes as input an encoded pair ⟨M,w⟩\langle M, w \rangle and simulates MM on ww, accepting exactly when MM accepts ww.

UU keeps MM's tape, state, and head position written on its own tape and repeatedly consults MM's transition function to advance them, which is possible because ⟨M⟩\langle M \rangle is just a string. One fixed machine therefore runs any machine handed to it as data, which is the stored-program computer, described by Turing in 1936. UU recognizes but does not decide the acceptance problem ATMA_{\mathsf{TM}}: it fails to halt exactly when the machine it simulates fails to halt. Introduced in Lecture 7.

Updated
Copyright © 2026 Jared Coleman. All rights reserved.