Turing machine

A is a 7-tuple, , where are all finite sets and

  1. is the set of states,
  2. is the input alphabet not containing the ,
  3. is the tape alphabet, where and ,
  4. is the transition function,
  5. is the start state,
  6. is the accept state, and
  7. is the reject state, where .

input string belongs to

A Turing machine accepts input if a sequence of configurations exists, where

  1. is the start configuration of on input ,
  2. each yields , and
  3. 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

  1. is the set of states,
  2. is the input alphabet not containing the ,
  3. is the tape alphabet, where and ,
  4. is the transition function,
  5. is the start state,
  6. is the accept state, and
  7. is the reject state, where .

任意逗留图灵机都可用一个原始图灵机模拟。

构造等价的原始图灵机:

对于任意状态和符号,定义新的状态,转移函数如下

  • if
  • if
  • if

不同符号图灵机

将设有两个图灵机,它们有不同符号集

有不同符号集的图灵机是可以互相模拟。

不失一般地,用模拟

,则可将看作进制数,并用进制数编码的符号。

至多使用个符号,即可编码的符号。

定义集合

定义集合

定义集合

定义状态,其中

定义转移函数