Chapter 2: Q42P (page 158)
Let
.
Here Prove that is not context free.
Short Answer
This language is not context free this can be proof by using pumping lemma.
Chapter 2: Q42P (page 158)
Let
.
Here Prove that is not context free.
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 freeGive unambiguous CFGs for the following languages.
a. { | in every prefix of w the number of a’s is at least the number of b’s}
b. { | the number of a’s and the number of b’s in w are equal}
c. { | the number of a’s is at least the number of b’s in w}?
Let G be a CFG in Chomsky normal form that contains b variables.
Show that if G generates some string with a derivation having at least
steps, L(G)is infinite.
Let be the following grammar. R is the set of rules:
a. Describe in English.
b. Prove thatis not regular.
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))
Show that the class of DCFLs is not closed under the following operations:
a. Union
b. Intersection
c. Concatenation
d. Star
e. Reversal
What do you think about this solution?
We value your feedback to improve our textbook solutions.