Name:
Due date: 4:00 P.M., Monday, March 2, 1998.
If you cannot attend class that day, leave your homework, in an envelope, with one of the office staff, on or before Wednesday.
Please work your homework only on these pages, and turn in these pages. Do not attach extra pages. You may use one side or both sides of the paper. Use pen or pencil, any color except red. If you use pen, it is perfectly correct to simply cross out material I should ignore, rather than try to erase it. Do not fold your papers at all. If you put them in an envelope, the envelope should be 9 by 12.
You are permitted to discuss homework with other members of the class, or others outside the class. But the purpose of this discussion should be to enlighten you (or the other person, if a member of the class) about the material, not for one person to simply do another person's homework.
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
(j)
(k)
(l)
"Suppose that L, a subset of {a,b}*, is defined as follows: Lambda is in L; for every x,y in L, axby and bxay are both in L; nothing else is in L. Show that L is precisely the set of strings in {a,b}* with equal numbers of a's and b's."
Hint: there are really two proofs here, first, to prove that every string in L has equal numbers of a's and b's, which is proved by strong induction, and is relatively easy, and second, to prove that every string over {a,b} with equal numbers of a's and b's is in L, which is also proved by strong induction, but is much harder. At one point in the proof, you will need to show that every string w with equal numbers of a's and b's which starts with an a has a prefix that has equal numbers of a's and b's and which ends with a b. That prefix can be chosen to be the smallest prefix of w which has equal numbers of a's and b's. (This is a very big hint.)
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
(j)
(k)
(l)
(m)
(n)
(o)
(p)