Tutorial 8
1. Write the CFG for the language and give the the parse tree for the string
x000y11z.
2. Let G be CFG
For the string bbaababa find
(i) leftmost derivation
(ii) rightmost derivation, and
(iii) parse tree
3. Show that the following grammar is ambiguous.
4. Design a CFG for the language and convert that CFG into CNF form.
5. Convert the following CFG into GNF.
6. Convert the following CFG into GNF