Homework Assignment Number 7 due Friday October 15

advertisement
Homework Assignment Number 7 due Friday October 15
1. Prove that {ww | w   a  b  *} is not regular by using the pumping lemma for regular
sets. Write a clear, concise and complete proof. The problem will be graded on the
quality of your exposition.
2. Use h, h-1, and R to convert the set
(a) a n b n c n | n  1 into a n b n | n  1
(b)
0 10 1 into 0 10 1
(c)
ww | w   a  b *
i
i1
i
2i
into a n b n | n  1
(d) delete every other zero in strings of a set L contained in (0+1)*
3. Write a cfg for the set  x # y R | x is a substring of y, x, y   a  b  * .
4. 6.2.2b
5. 6.2.3a
Download