# hwsol5 - Theory of Algorithms Spring 2000 Homework 5...

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

Theory of Algorithms. Spring 2000. Homework 5 Solutions. Section 3.3 (3) Right Linear S aaA A aA | bbbB B bB | λ Left Linear S Abbb A Ab | Baa B Ba | λ (5) S bS | λ | aA A bA | λ | aB B bB | λ | aC C bC | λ (9) S A | B A aaA | C B aaB | abC C bbC | λ Extra problem 1. Using the right-linear grammar given in exercise 1 of section 3.3. S - - A - - B - - a a bb b b = a - Extra problem 2. Sorry, I meant Figure 2.6 on page 46, not page 47. (Let S q 0 , A q 1 , B q 2 , C q 3 .) S bA | aB A aA | bA B bB | aC C aC | bB | λ Extra problem 3. Let G 1 be the following left-linear grammar: S Sabb | Abaa | λ A Aba | a (a) A right linear grammar

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 07/17/2011 for the course MAD 3512 taught by Professor Staff during the Spring '07 term at University of Florida.

### Page1 / 2

hwsol5 - Theory of Algorithms Spring 2000 Homework 5...

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

View Full Document
Ask a homework question - tutors are online