Next: Exercise 2.
Up: Quiz1
Previous: Guidelines.
Consider the following grammar G (with terminals a, b and nonterminals S, A)
S |
![$ \longmapsto$](img2.png) |
AS | b |
A |
![$ \longmapsto$](img2.png) |
SA | a |
Let L be the language generated by G.
Consider the words
w1 = baab,
w2 = abab,
w3 = bbaa.
For i = 1, 2, 3, if wi belongs to L then give a parse
tree for wi with G.
Answer 1
![\fbox{
\begin{minipage}{13 cm}
\mbox{ } \\
\mbox{ } \\
\mbox{ } \\
\mbox{ } \\
\mbox{ } \\
\mbox{ } \\
\mbox{ } \\
\mbox{ } \\
\end{minipage}}](img3.png)
Next: Exercise 2.
Up: Quiz1
Previous: Guidelines.
Marc Moreno Maza
2004-12-02