<< Prev | - Up - |
Show what happens when we give the input The wizard curses the wizard to RTN2. You should give all the steps, showing the tape and pointer, the state, and the stack, just as was done in the text.
Show what happens when we give the input aab to our RTN for the language . This string will {\em not/ be accepted. You should give all the steps, showing the tape and pointer, the state, and the stack, just as was done in the text. Then say exactly why the string was not accepted.
Consider the following context free grammar:
S a b |
S a S b |
This generates the language \ {}. That is, it generates the set of all the strings in except the empty string . Draw the RTN that corresponds to to this grammar, and give the its Prolog representation.
Write down the context free grammar that corresponds to our second RTN.
<< Prev | - Up - |