Turing machine
A is a 7-tuple, , where are all finite sets and
- is the set of states,
- is the input alphabet not containing the ,
- is the tape alphabet, where and ,
- is the transition function,
- is the start state,
- is the accept state, and
- is the reject state, where .
input string belongs to
A Turing machine accepts input if a sequence of configurations exists, where
- is the start configuration of on input ,
- each yields , and
- is an accepting configuration.
The collection of strings that accepts is the language of , or the language recognized by , denoted .
If a Turing machine can always enter the accepting state or the rejecting state after a finite number of state transitions for all inputs, then the Turing machine is called decider.
A decider that recognizes some language also is said to decide that language. Call a language Turing-decidable or simply decidable if some Turing machine decides it.
flowchart TD subgraph Turing-recognizable subgraph decidable subgraph context-free subgraph regular end end end end style Turing-recognizable fill:none,stroke:#333 style decidable fill:none,stroke:#333 style context-free fill:none,stroke:#333 style regular fill:none,stroke:#333
图灵机的(等价)变体
表示投影映射,表示取第一个分量
例如,若,则
表示的指标集
逗留(stay)图灵机
A is a 7-tuple, , where are all finite sets and
- is the set of states,
- is the input alphabet not containing the ,
- is the tape alphabet, where and ,
- is the transition function,
- is the start state,
- is the accept state, and
- is the reject state, where .
任意逗留图灵机都可用一个原始图灵机模拟。
构造等价的原始图灵机:
对于任意状态和符号,定义新的状态,转移函数如下
- if
- if
- if
不同符号图灵机
将设有两个图灵机和,它们有不同符号集和
有不同符号集的图灵机和是可以互相模拟。
不失一般地,用模拟
若,则可将看作进制数,并用进制数编码的符号。
至多使用个符号,即可编码的符号。
定义集合
定义集合
定义集合
定义状态,其中
定义转移函数