形式语言与自动机_笔记整理(三)_图灵机与递归语言、递归可枚举语言

Turing Machines

Turing-Machine Theory

  • The purpose of the theory of Turing machines is to prove that certain specific languages have no algorithm.
  • Start with a language about Turing machines themselves.
  • Reductions are used to prove more common questions undecidable.

Picture of a Turing Machine

这里写图片描述

Turing-Machine Formalism

A TM is described by:

  • A finite set of states (Q, typically).
  • An input alphabet (Σ, typically).
  • A transition function (δ, typically).
    • Takes two arguments:
      • A state, in Q.
      • A tape symbol in Γ.
    • δ(q, Z) is either undefined or a triple of the form (p, Y, D).
      • p is a state.
      • Y is the new tape symbol.
      • D is a direction, L or R.
  • A start state ( q0 , in Q, typically).
  • All tape except for the input is blank initially.
  • A set of final states (F ⊆ Q, typically).

Instantaneous Descriptions of a Turing Machine

  • Initially, a TM has a tape consisting of a string of input symbols surrounded by an infinity of blanks in both directions.
  • The TM is in the start state, and the head is at the leftmost input symbol.
  • An ID is a string αqβ , where αβ includes the tape between the leftmost and rightmost nonblanks.
  • The state q is immediately to the left of the tape symbol scanned.
  • If q is at the right end, it is scanning B .
    • If q is scanning a B at the left end, then consecutive B 's at and to the right of q are part of α .
    • As for PDA's we may use symbols and ⊦* to represent "becomes in one move" and "becomes in zero or more moves" respectively, on ID'*s.
    • Formal Definition of Moves

      • If δ(q, Z) = (p, Y, R), then
        • αqZβαYpβ
        • If Z is the blank B, then also αqαYp
      • If δ(q, Z) = (p, Y, L), then
        • For any X, αXqZβαpXYβ
        • In addition, qZβpBYβ

      Languages of a TM

      • A TM defines a language by final state, as usual.
        L(M) = {w | q0wI , where I is an ID with a final state}.

      • Or, a TM can accept a language by halting.
        H(M) = {w | q0wI , and there is no move possible from ID I}.

      Equivalence of Accepting and Halting

      • If L = L(M), then there is a TM M'such that L = H(M').
      • If L = H(M), then there is a TM M" such that L = L(M").

      Proof of 1: Final State -> Halting

      • Modify M to become M as follows:
        • For each final state of M , remove any moves, so M′<
  • 2
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值