COMS W3261 CS Theory
Lecture 5: Properties of Regular Languages - I

1. Closure Properties of Regular Languages

2. The Pumping Lemma for Regular Languages

3. Practice Problems

  1. Let FirstHalf(L) = { x | xy is in L and |x| = |y| }. Show that if L is regular, then FirstHalf(L) is also regular.
  2. Show that the language consisting of all strings of balanced parentheses is not regular.
  3. Show that the language consisting of all strings of a's and b's that read the same forwards as backwards is not regular.
  4. Prove that the language L = { w | w = aibj where i is not equal to j } is not regular.
  5. [Hard] Let FTLT(L) = { xz | xyz is in L and |x| = |y| = |z| }. (FTLT(L) concatenates the first-third and last-third of strings in L whose length is a multiple of 3.) Show that if L is regular, then FTLT(L) is not always regular.

4. Reading


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