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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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 Right Arrow Icon
Ask a homework question - tutors are online