This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: A aBS | B B Aaab | C cCDA D ddd Solve the following parts, in the following order : (5 pts) Remove - productions. Show the resultant grammar. (5 pts) Remove unit productions. Show the resultant grammar. (5 pts) Remove useless productions S S S a a b COT 4420: Introduction to Formal Languages and Automata Fall 09 2 10 points 5. Transform the grammar with productions S bbAA A aAB B ABa | A | into Chomsky normal form Note: remove first the -productions and unit-productions. 10 points 6. Convert the grammar S ABb | a A aaA | B B bAb into Greibach normal form. Bonus 1 Show that the following grammar is ambiguos: S aSbS | bSaS | Bonus 2 Find an s-grammar for L(aab*a + aba*b)...
View Full Document
- Spring '08