COMS W3261 CS Theory
Lecture 11: Properties of CFL's

1. Closure Properties of CFL's

2. Nonclosure Properties of CFL's

3. Testing Emptiness of a CFG

4. Undecidable CFL Problems

5. Practice Problems

  1. Prove the CFL's are closed under the operations in Section 1 above.
  2. Let min(L) = { w | w is in L but no proper prefix of w is in L }. Are the CFL's closed under the min operation?
  3. Let max(L) = { w | w is in L but for no string x other than ε is wx is in L }. Are the CFL's closed under the max operation?
  4. Let init(L) = { w | wx is in L for some string x (possibly the empty string) }. Are the CFL's closed under the init operation?
  5. Let cycle(L) = { w | we can write w as xy where yx is in L }. Are the CFL's closed under the cycle operation?
  6. Let half(L) = { w | there exists a string x such that |w| = |x| and wx is in L }. Are the CFL's closed under the half operation?
  7. Let L = { anbncn | n ≥ 1 }. Show that the complement of L is context free.
  8. Let L = { ww | w is a strings of a's and b's }. Show that the complement of L is context free.

6. Reading


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