CS381-2002fa-prelim2

CS381-2002fa-prelim2 - x iff x S ∗ ⇒ 2 Use the pumping...

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

View Full Document Right Arrow Icon
CS381 Second Mid Term Friday Nov 8, 2002 Fall 2002 Olin 155 9:05-9:55 This is a 50-minute in class closed book exam. All questions are straightforward and you should have no trouble doing them. Please show all work and write legibly. Thank you. 1. (a) Give a context-free grammar for the language } ' ' * ) ( | { s b and s a of number equal an has x and b a x x + (b) For each variable in the grammar describe the strings that can be generated from the variable by a statement such as s b and s a of number equal an has
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: x iff x S ' ' ∗ ⇒ 2. Use the pumping lemma to prove that the language )*} ( | { b a w ww + ∈ is not a context-free language. 3. (a) What is the meaning of a symbol of the form [qAp] in the conversion of a pda to a cfg? (b) Suppose ) , , ( A a q δ contains ) , ( 2 1 k A A A s L . What productions does this give rise to in the grammar? (c) Suppose ) , , ( A a q contains ) , ( ε s . What productions does this give rise to in the grammar?...
View Full 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