# hw5 - A = i 1 j 2 k | i 6 = j or j 6 = k or k 6 = i B = w...

This preview shows page 1. Sign up to view the full content.

CS 181 — Winter 2006 Problem Set #5 Formal Languages Due February 20, 2008 Problem 4.1. (10 points) Recall the shuffle operator from Homework 2. Prove or disprove: a. Context free languages are closed under shuffle. b. Let L be context free and R regular. Then the shuffle of L and R is context free. Problem 4.2. (10 points) Classify the following languages as context free or not.
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: A = { i 1 j 2 k | i 6 = j or j 6 = k or k 6 = i } B = { w ∈ { , 1 , 2 } * | the number oF 0’s, 1’s and 2’s are all equal } Problem 4.3. (10 points) Let C = { x # y | x,y ∈ { , 1 } * and x 6 = y } . Show that C is context Free by giving both a C±G and a PDA For C ....
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern