Context-Sensitive Languages
[8/25%]Find a context-sensitive grammar for the language
Find a context-sensitive grammar for the language
Construct context-sensitive grammars for the languages of Examples 4.17 and 4.18, and for the languages in Exercises 3(b)-3(i) of Section 4.5.
Complete the last part of the proof of Theorem 6.35. That is, describe how to attach the leftmost and rightmost blanks to their neighboring symbols to convert grammar to a context-sensitive grammar.
Show that the class of context-sensitive languages is closed under union, intersection, concatenation, and Kleene closure.
Find a recursive language that is not context-sensitive.
What is wrong if we use the following simpler algorithm to compute in the proof of Theorem 6.36?
For each , to compute , we generate each configuration one by one and, for each one, nondeterministically verify whether (by machine ), and increments the counter for by one if holds.
Recall, from Exercise 6 of Section 3.5, the notion of 2-stack PDA's. Show that each language accepted by a 2 -stack PDA is a context-sensitive language.