"Introduction to the Theory of Computation" Reading notes - Ch. 2

Chapter 2 is a generalized chapter 1, just like (G)NFA to DFA. 

Combining GNFA|Regular lang., readers should be able to understand PDA|Ctx-Free grammar without too much effort.. Yes, this is what you saw in your compiler classes. With (G)NFA existed, a stack is added for "recording extra info", so to make PushDown Automata more powerful than GNFA, because it "recording extra info" in that stack. 

Make a comparison btw. GNFA and PDA: GNFA is so simple that a lot info is simply "forgotten" after each movement - the visibility of GNFA is limited to "neighbor" states; but with a stack, we have memories of information from the past ! That means, the "linear" style of GNFA (I know, it could be a graph, but it is still directive) becomes a tree, a grammar tree. 

The big star of the 2 chapters: Pumping lemma. It is adopted to prove some language is NOT a Regular | Context-Free language. Essentially a pumping style (no, not gangnam style) reflects its corresponding gist of GNFA or Context-Free grammar: GNFA is essentially a linear (as above) procedure so its pumping is a linear pumping; while Ctx-Free pumping lemma is a recursive (stack like) type of pumping. Smart maths tricks are applied to the 3 conditions in these lemmas. Contradiction from Ch.0 is used as the proof strategy.

P.S. I don't like terminology in this field from the very beginning. Language? Grammar? They remind me of ETS - Educational Testing Service. The first big boss you conquered before your first flight ticket to US.

Anyway, Michael Sipser is an excellent teacher. He knows how students learn theory of computation. For sure he had assignments to his students, which part I totally skipped - don't blame me i have no plan to be a professor.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
《计算理论导论》(Introduction to the Theory of Computation)是一本经典的计算机科学教材,适用于理论计算机科学领域的学生和研究人员。这本书由Michael Sipser所著,第一版于1997年出版,目前已经出版了第三版。 《计算理论导论》的目标是介绍计算理论的基本概念和技巧。它涵盖了计算能力、形式语言、自动机理论、图灵机、可计算性、复杂性理论等主题。每个主题都以清晰的解释、例子和练习来展示,使读者能够理解和应用这些概念。 这本书的特点之一是强调形式化和精确性。它使用数学语言和符号来定义概念和理论,并提供了形式的证明过程。这种精确性有助于读者深入理解计算理论的基本原理和证明方法。 书中还包含了一些重要的应用,例如正则表达式、编程语言的语法分析、有限状态机的设计等。这些应用展示了计算理论在实际计算机科学领域的应用和重要性。 《计算理论导论》可以作为计算机科学相关专业的教材使用,也适用于自学者。读者需要有一定的数学基础,如离散数学和数理逻辑,以便更好地理解和运用书中的概念和技巧。 总之,《计算理论导论》是一本经典的计算机科学教材,它通过清晰的解释、精确的定义和形式化的证明,帮助读者理解计算理论的基本概念和技巧,并展示了其在实际应用中的重要性。无论是理论计算机科学领域的学生还是研究人员,都可以从中受益。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值