Next: Problem 2 - TLB
Up: Information Science I
Previous: Information Science I
Give a context free grammar that produces the following set:
- 1.
- All palindromes (a sentence that is the same when read from beginning and read from the end)
on the alphabet .
- 2.
- All strings on the alphabet
such that
appears twice as many times as .
- 1.
- A context-free grammar generating the set of palindromes would have the productions:
- 2.
- A context-free grammar generating the set of all strings on the alphabet
such that
appears
twice as many times as
would have the productions:
Reynald AFFELDT
2000-06-08