This document summarizes a lecture on context free languages and grammars. It includes:
- Definitions of context free grammars and languages. A context free grammar is defined as a 4-tuple (V, Σ, R, S) where V is variables, Σ is terminals, R is rules, and S is the start variable.
- Examples of context free grammars that generate specific languages. Grammars are provided to generate languages of even length palindromes, strings with a^i b^j where i,j > 0, and strings with a^i b^2i.
- Discussion of ambiguity in grammars and languages. A grammar is ambiguous if it can derive