CSE 322 Assignment #9
Spring 2000
Due: Friday, June 2, 2000.
Problems:
-
Run the Cocke-Kasami-Younger algorithm for the
input babbaa for the following grammar. (Show the full tableau.)
S' -> e | aB | bA | SS
S -> aB | bA | SS
A -> Sa | a
B -> Sb | b
- Lewis and Papadimitriou, Problem 3.6.3, page 157.
- Let B be the set consisting of all infinite binary sequences.
(Note that infinite binary sequences are not strings since any string has
finite length). Prove that B is not countable using diagonalization.
- (Bonus) Let HALF-L={x : there is a y with |y|=|x| and xy is in L}.
Show that if L is regular then so is HALF-L.