计算理论总结

这篇博客主要涵盖了计算理论的基础概念,包括正则语言、有限自动机(DFA与NFA)、可数无穷、正则表达式及其性质。接着讨论了上下文无关语言(CFL)与推下自动机(PDA)。最后提到了图灵机、递归可枚举语言以及停机问题,阐述了计算理论中的一些重要定理和问题的可判定性。
摘要由CSDN通过智能技术生成

计算理论复习

  • 正则语言与有穷自动机

    • 可数无穷
    • 正则表达式(注意+不是正则,*是正则; L=L=
      Σ{ (,),,,}
    • DFA
      • M = ( K , Σ , δ , s , F ) where
        K is a finite set of states,
        Σ is an alphabet,
        sK is the initial state,
        FK is the set of final states,
        δ is the transition function form K×Σ to K
    • NFA
      • M = ( K , Σ , Δ , s , F ) where
        K is a finite set of states,
        Σ is an alphabet,
        sK is the initial state,
        FK is the set of final states,
        Δ is the transition relation form K×(Σ{ e})×K to K
        • for each NFA, there is an equivalent DFA
          (将NFA的状态的集合变为DFA中的点)
    • closure 和 pumping theory
      • The class of languages accepted vy finite automata is closed under:
        1. union
        2. concatentenation
        3. Kleene star
        4. complementation
        5. intersection
      • A language is regular if and only if it is accepted by finite automaton
        正则表达式和DFA, NFA的相互转化按照步骤生成
      • Pumping Theory: Let L be a regular language. There is an integer n1 such that any string wL with |w|n can be rewritten as w=xyz such that ye,|xy|n , and xyizL for each i0

    Give DFA or NFA write Regular Expression
    Give regular expression, write DFA or NFA
    Show a given language is (construct) or is not regular (pumping)

  • context-free and pushdown自动机

    • context-free grammar
      • G = ( V , Σ , R , S ) where
        V is an alphabet
        Σ is the set of terminals, is a subset of V
        R is the set of rules (VΣ)×V
        S is the start Symbol, is an element of VΣ
      • all regular languages are context-free
      • parse tree, leftmost derivation, rightmost derivation
        Grammars with strings that have two or more distinct parse trees are called ambiguous
    • PDA

      • M = ( K , Σ ,

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值