CS 3613: Theoretical Foundations of Computing CS 3613: Theoretical Foundations of Computing
Spring 2009
Homework 6 (Version 1): Context-Freedom
Due Date: April 6, 2009
----------------------------------------------------
Notes:
  1. Read the notes above carefully.

  2. Consider the following language:

    K = { x $ y | x and y are in {a, b}*, and y is not a permutation of x }.
    Example strings in K are a a a b $, a $ a a a b and b a b a $ a a a b; example strings not in K are a b b a, a b b b a $ a b b b a, and a b b b a $ b a b a b.
    1. Prove that the language K is not regular.

    2. Construct a context-free grammar that generates the language K. Briefly and precisely describe the strings generated by each variable in the grammar.



  3. Show that the following language is context-free via context-free grammar:
    { w1 $ w2 $ ¼$ wn | n ³ 1, each wi Î {a, b}*, and for some i and j, wir = wj }.
    Briefly and precisely describe the strings generated by each variable in the grammar.

  4. Do [Sip06] Chapter 2, exercise 2.14. Show all the important intermediate work.

  5. ¼ More problems may be given in later version.




File translated from TEX by TTH, version 3.35.
On 23 Mar 2009, 13:42.