Lecture 14
Learning objectives
After this class, you should be able to:
- Define the following: context free grammar, leftmost derivation, rightmost derivation, derivation or parse tree, partial deriation tree, yield of a tree,
- Explain the relation between sentential forms and derivation trees.
- Given a context free language, give a grammar for it.
- Given a context free grammar and a string, give a derivation tree for it.
- Prove the relationship mentioned in theorem 5.1 between sentential forms and derivation trees for context free grammars.
Reading assignment
- Section 5.1.
- Lecture 14-15 slides on Blackboard.
- Page 140.
Exercises and review questions
- Exercises and review questions on current lecture's material
- Section 5.1, exercise #3.
- Section 5.1, exercise #7 a, b.
- Section 5.1, exercise #8 c.
- Questions on next lecture's material
- Give an example of an ambiguous grammar (different from that of the text book) and give an example to show that it is ambiguous.
Last modified: 15 Jan 2014