2.1
Concepts: substitution rule (production),variable,terminal,derivation
Definition: a context-free grammar is a 4-tuple(variables, terminals, rules, start variable)
Chomsky normal form:
A ®B, C
A ® a
Theorem:
Any context free language is generated by a context-free grammar in Chomsky normal form.
2.2
A pushdown automaton is a 6-tuple (states, input alphabet, stack alphabet, transition function, start state, accept states)
Theorem
A language is context free if and only if some pushdown automaton recognizes it.
2.3
The pumping lemma for context-free languages
1. for each i ³ 0 , uvixyiz ÎA
2. |vy| > 0
3. |vxy| £ p
博客介绍了上下文无关文法的概念,包括替换规则、变量、终结符、推导等,给出其定义为一个四元组。还提及了乔姆斯基范式,最后阐述定理:一种语言是上下文无关的,当且仅当某个下推自动机能够识别它。
2085

被折叠的 条评论
为什么被折叠?



