
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

CS 172 — Fall 2003 Problem Set # Computability and Complexity Due October 1, 2003
Problem 5.1. (10 points) For the following three languages Li over the alphabet { 0 , 1 }, give both a PDA that recognizes Li and a CFG that generates Li.
Problem 5.2. (5 points) Show that the intersection of a context-free language and a regular language is always context-free. That is, given a PDA A and a DFA B, construct a PDA C so that L(C) = L(A) ∩ L(B).