Question 1. For each of the following strings give a valid derivation, and a parse tree, for that string.
Question 2. Is the grammar unambiguous? Justify your answer.
Question 3
Applying this new pumping lemma can require the same sort of creative decisions as the one for
regular languages. Previously we showed this language was not regular:
Question 4
We mentioned earlier that the class of context-free languages is not closed under the
intersection operation.
Can you prove it now that we have some examples of non-context-free languages?
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
23 | 24 | 25 | 26 | 27 | 28 | 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 | 1 | 2 | 3 | 4 | 5 |
Get Free Quote!
281 Experts Online