COMS W3261
Computer Science Theory
Lecture 16: November 4, 2009
Decision Properties of CFL's

Midterm 2 will be in class, Wed, Nov 11. It will cover context-free languages (HMU Chs. 5-7). Closed book, no aids.

1. Outline

2. Review

3. Time Compexity of an Algorithm

4. Testing Emptiness of a CFG

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

6. Undecidable Problems for CFL's

7. Practice Problems

  1. HMU, Exercise 7.4.1(a).
  2. HMU, Exercise 7.4.3(a).
  3. Augment the CYK algorithm to construct all parse trees for the given input. What is the time complexity of your algorithm? Show how your algorithm works on Exercise 7.4.3(a).
  4. (Hard) HMU, Exercise 7.4.1(c).

8. Reading Assignment



aho@cs.columbia.edu