形式陈述
固定一种可有效解析的编码。通用图灵机
直觉
机器本身也能表示成数据。一个固定解释器读取“程序编码 + 输入”,即可执行所有其他机器,这正是通用计算机和存储程序思想的抽象核心。
例子与边界
现代解释器把源程序或字节码连同输入交给同一个运行时,结构上类似
推论与应用
通用机使“程序分析另一个程序”可形式化,导出停机问题、对角化、自解释器和可计算枚举。复杂性理论还需指定高效通用模拟器,才能把机器描述开销纳入时间或空间界。
参考资料
- Michael Sipser, Introduction to the Theory of Computation, 3rd ed., Cengage, 2013,Ch. 3, universal Turing machine and machine encodings。
- Alan M. Turing, “On Computable Numbers, with an Application to the Entscheidungsproblem,” Proceedings of the London Mathematical Society, 1936,Full paper, universal-machine construction and machine descriptions。