Chapter 2: Q45P (page 158)
Let Prove that A is not a CFL.
Short Answer
This language is not context free this can be proof by using pumping lemma.
Chapter 2: Q45P (page 158)
Let Prove that A is not a CFL.
This language is not context free this can be proof by using pumping lemma.
All the tools & learning materials you need for study success - in one app.
Get started for freeLet G be the following grammar:
Let C=. Prove that C is not a DCFL. (Hint: Suppose that when some DPDA P is started in state q with symbol x on the top of its stack, P never pops its stack below x, no matter what input string P reads from that point on. In that case, the contents of P’s stack at that point cannot affect its subsequent behaviour, so P’s subsequent behavior can depend only on q and x).
Say that a language is prefix-closed if all prefixes of every string in the language are also in the language. Let C be an infinite, prefix-closed, context-free language. Show that C contains an infinite regular subset.
Let B be the language of all palindromes over {0,1} containing equal numbers of 0s and 1s. Show that B is not context free.
Recall the CFG G4 that we gave in Example 2.4. For convenience, let’s rename its variables with single letters as follows.
Give parse trees and derivations for each string.
a. a
b. a+a
c. a+a+a
d. ((a))
What do you think about this solution?
We value your feedback to improve our textbook solutions.