1.
Prove that the language
is not context-free.
Extra credit: Prove the following: if a language L over a
one-symbol alphabet is context-free, then it is regular.
Hint: use pumping lemma. (Note that the claim
does not remain true when L is a language over a two-symbol alphabet:
is context-free, but not regular.)
2.
Which of the following languages over
are context-free? Give a
context-free grammar for the languages that are context-free, and give a
proof for the languages that are not context-free.
3. Problem 2.17(b), page 121 of the book. Assume 2.17(a) to be true.
4. Consider the following context-free grammar:
Apply the algorithm presented in class to see whether the string aaaaa is generated by the grammar or not.