Question: Question 3 : Using the Pumping lemma to prove that the given language is not context free. [ 3 mark ] Language: { a ^

Question 3: Using the Pumping lemma to prove that the given language is not context free. [3 mark] Language:
{a^m b^n c^(mn) :m>=0, n>=0}{a^n b a^(2n) b a^(3n) : n=>0}{a^n b^n a^n b^n :n>=0} define all ceses such like this: Cases ,A={anbncn:n0}
Case 1: The substring vxy does not contain any c.
Consider the string uv2xy2z=uvvxyyz. Since |vy|1, this string
contains more than p many as or more than p many b s. Since it contains
exactly p many cs, it follows that this string is not in the language A. This
is a contradiction because, by the pumping lemma, the string uv2xy2z is in
A.
Case 2: The substring vxy does not contain any a.
Consider the string uv2xy2z= uvvxyyz. Since |vy|1, this string
contains more than p many b s or more than p many cs. Since it contains
exactly p many as, it follows that this string is not in the language A. This
is a contradiction because, by the pumping lemma, the string uv2xy2z is in
A.
Case 3: The substring vxy contains at least one a and at least one c.
Since s=apbpcp, this implies that |vxy|>p, which again contradicts the
pumping lemma.
Thus, in all of the three cases, we have obtained a contradiction. There-
fore, we have shown that the language A is not context-free.
Complete the Example:
Show that L={anbncn|n>0 is not a context free language by completing the following (fill-in the blanks):
First, assume that L is a context free language. By the pumping lemma, there exists an integer N? which is the
pumping constant of L. Consider the string s=aNbNcN in L. The pumping lemma tells us that s can be written in
the form s=uvxyz, where u,v,x,y, and z are substrings, such that |vxy|N,|vy|1, and uvixyizinL for every
integer i0.
The possible decompositions can be summarized as:
Substring vxy contains only a's. Then uv2xy2z will contain, more a's than b's and c's
Substring vxy contains only b's. Then uv2xy2z will contain, more b's than a's and c's
Substring vxy contains only c's. Then uv2xy2z will contain, more c's than a's and b's
Substring vxy contains a's and b's. Then uv2xy2z will contain less c's than a's and b's
Substring vxy contains b's and c's. Then uv2xy2z will contain less a's than b's and c's

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!