{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw07 - CS 154 Intro to Automata and Complexity Theory...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 154 Intro. to Automata and Complexity Theory Handout 29 Autumn 2009 David Dill November 17, 2009 Problem Set 7 Due: December 1, 2009 Homework: (Total 100 points) Do the following exercises. Problem 1. [15 points] (Derived from Exercise 7.3.2 in the textbook.) Consider the following two languages: L 1 = { a n b 2 n c m | n,m 0 } L 2 = { a n b m c 2 m | n,m 0 } a) Show that each language is context-free by writing a context-free gram- mar for it. b) Show that L 1 L 2 is not context-free using closure properties and lan- guages from the lecture or textbook that are known not to be context- free (don’t use the context-free pumping lemma). Problem 2. [15 points] (From Exercise 7.4.3 (b,c) in the textbook.) Using the grammar G of Example 7.34, use the CYK algorithm to de- termine whether each of the following is in L ( G ): baaab aabab The grammar G is: S AB | BC A BA | a B CC | b C AB | a Problem 3. [15 points] (Derived from Exercise 11.1.1 in the textbook.) Below are some problems. For each, tell whether it is in NP and whether it is in co-NP. Describe the complement of each problem. If either the problem
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern