3.1 Turing Machines
有一条无限长的tape,有一个可以读、写、左移、右移的tape head.
(你比...就在于你可以拿笔写下来)
定义3.3(TM)
A Turing machine is a 7-tuple , where , , are all finite sets, and
- is the set of states,
- is the input alphabet not containing the blank symbol ,
- is the tape alphabet, where and ,
- is the transition function
- is the start state,
- is the accept state, and
- is the reject state, where
定义(TM's computation)
TM在任意时刻下的全部信息称为configuration,包含:the current state, the current tape contents, and the current head location. 特殊地:
- The start configuration is .
- In an accepting configuration, the state of configuration is .
- In an rejecting configuration, the state of configuration is .
- Accepting configurations and rejecting configurations are halting configurations.
A Turing machine M accepts input if a sequence of configurations exists, where
- is the start configuration of on input
- each yields , and
- is an accepting configuration
定义3.5(Turing-recognizable)
Call a language Turing-recognizable if some TM accepts it.
当时,在上停机接受
当时,在上停机拒绝或不停机
定义3.6(Turing-decidable)
图灵机面对一个输入时,有accept, reject, looping三种可能的最终结果。如果一个TM对一个language种的输入总能回答accept or reject,那么称该TM decides该language.
Call a language Turing-decidable or simply decidable if some TM decides it.
当时,在上停机接受
当时,在上停机拒绝