形式陈述
对语言
直觉
文法自顶向下展开一棵推导树,PDA 则用栈保存尚未完成的嵌套任务;两种表示都只有一个后进先出的无界记忆,因此能力恰好一致。
例子与边界
文法
推论与应用
定理允许在语法分析、闭包性质和不可判定性证明中自由选择更合适的表示。CFG 适合描述递归语法与构造推导,PDA 适合描述在线识别和栈行为;CYK、LL/LR 等算法则进一步限制文法形式或确定性。
参考资料
- John E. Hopcroft, Rajeev Motwani, and Jeffrey D. Ullman, Introduction to Automata Theory, Languages, and Computation, 3rd ed., Pearson, 2006,Chs. 5–6, pushdown automata and context-free grammars。
- Michael Sipser, Introduction to the Theory of Computation, 3rd ed., Cengage, 2013,Ch. 2, equivalence of pushdown automata and context-free grammars。