Theory of computing

Regular Expressions/DFA/NFA

Regular Expressions (RE) 正规式
它的规则:
https://www.runoob.com/regexp/regexp-metachar.html
(测试网站):
https://tool.oschina.net/regex/

Finite State Machine:(有限状态机)
Finite Automaton:(有穷自动机)
DFA/NFA:确定的又穷自动机/非确定的有穷自动机
在这里插入图片描述

Two ways to define a set of strings (language)

Regular expressions (REs)
Deterministic finite automatia (DFAs)

conclusion:
  1. Remarkable fact. DFAs and REs are equivalent (等价)
  2. In short, there is no formal language that can be recognized by some NFA and not by any DFA
  3. NFAs and REs are equivalent
  4. Not all formal languages are regular

Turing Machines

DFAs 与 TMs的比较
在这里插入图片描述

Universality

All computational devices are equivalent
Turing as a definition of what we can compute
Q&A : 图灵机,Java,mobile phone,are universality

Computability

在这里插入图片描述
根据前面的理论如果问题不能计算那么所有的计算机都不能计算因为
All computational devices are equivalent
The halting problem is undecidable: (图灵机停机问题)https://zhidao.baidu.com/question/22004860.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值