hw_04 - Problem Set 4 Fall 09 Due: Thursday Nov 5 at 11:00...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Problem Set 4 Fall 09 Due: Thursday Nov 5 at 11:00 AM in class (i.e., Room 103 Talbot Lab) Please follow the homework format guidelines posted on the class web page: http://www.cs.uiuc.edu/class/fa09/cs373/ 1. [ Points : 10] Suppose G is a CFG with p rules and the body of each rule is not longer than n (Note: the rule S aSbSA has a body length of 5). If we can derive from non-terminal S , then prove that we can derive it from S in no more than n p- 1 n- 1 steps. 2. [ Points : 10] (a) Prove that this language is not context free: L = { a i b j c max( i,j ) | i,j } (b) Prove that context free languages are not closed under the operator max , as de ned below: max( A ) = { w A | if wx A for some string x , then x = } . Hint: part(a) might be useful. 3. [ Points : 10] Describe an algorithm that given a grammar G determines whether L ( G ) has at least 373 strings or not. 4. [ Points : 10] Given a grammar G in Chomsky normal form: (a) Design an algorithm (via modifying the CYK algorithm) that for any given number...
View Full Document

This note was uploaded on 11/15/2010 for the course CS 241 taught by Professor Campbell during the Spring '08 term at University of Illinois, Urbana Champaign.

Page1 / 2

hw_04 - Problem Set 4 Fall 09 Due: Thursday Nov 5 at 11:00...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online