Question: Question 3 : Using the Pumping lemma to prove that the given language is not context free. [ 3 mark ] Language: { a ^
Question : Using the Pumping lemma to prove that the given language is not context free. mark Language:
am bn cmn :m nan b an b an : nan bn an bn :n define all ceses such like this: Cases :
Case : The substring does not contain any
Consider the string uvvxyyz. Since this string
contains more than many as or more than many s Since it contains
exactly many cs it follows that this string is not in the language This
is a contradiction because, by the pumping lemma, the string is in
A
Case : The substring does not contain any
Consider the string uvvxyyz. Since this string
contains more than many s or more than many cs Since it contains
exactly many as it follows that this string is not in the language This
is a contradiction because, by the pumping lemma, the string is in
A
Case : The substring vxy contains at least one a and at least one
Since this implies that 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 is not contextfree.
Complete the Example:
Show that is not a context free language by completing the following fillin the blanks:
First, assume that is a context free language. By the pumping lemma, there exists an integer which is the
pumping constant of Consider the string in The pumping lemma tells us that can be written in
the form uvxyz, where and are substrings, such that and zinL for every
integer
The possible decompositions can be summarized as:
Substring vxy contains only as Then will contain, more as than bs and cs
Substring vxy contains only bs Then will contain, more bs than as and cs
Substring vxy contains only cs Then will contain, more cs than as and bs
Substring contains as and bs Then will contain less cs than as and bs
Substring vxy contains bs and cs Then will contain less as than bs and cs
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
