Next: Problem 7 - Type
Up: Information Science II
Previous: Problem 1 - Algorithm
Answer the following questions about the context-free grammar below.
is the set of terminal symbols and
is the starts symbol.
- 1.
- Remove left recursion from this grammar.
- 2.
- Show that the result of 1. is LL(1).
- 3.
- Consider the set
as a language over
. Construct a deterministic finite automata
that accepts .
- 4.
- Prove that
is equal to the language accepted by
using the following inductions:
- induction on the length of right-most derivations,
- induction on the number of transitions of .
- 1.
- We just have to deal with trivial left-recusions:
-
can be replaced by
and
.
-
can be replaced by
and
.
- 2.
Reynald AFFELDT
2000-06-08