COMS W3261 CS Theory
Lecture 10: Pumping Lemma for CFL's

1. The Pumping Lemma for CFL's

2. Cocke-Younger-Kasami Algorithm for Testing Membership in a CFL

3. Practice Problems

  1. Show that the language { ww | ww is a string of a's and b's } is not context free.
  2. Show that the language { anbnci | n ≥ 0 and in } is not context free.
  3. Show that the language { wwRw | w is a string of a's and b's } is not context free.
  4. Construct the CYK parsing table for the input string baaba using the following CNF grammar:
  5. Construct a parse tree for the input string baaba from the parsing table created in problem (4).

4. Reading



aho@cs.columbia.edu
verma@cs.columbia.edu