2,592 views

2 Answers

Best answer
4 votes
4 votes

 Firstly Pumping Lemma is Negativity test .

 If L is context-free then L satisfies the pumping lemma. .

Assume PL for CFL's  If L fails in Pumping lemma test then definitely the L is NOT CFL

If L doesn't fail in PL test then we cannot assure it belongs to CFL or not.

Here L2 is not CF == > L2 pass or fail PL test

$a^{n}b^{n}c^{n}$ is not CFL since it doesnot satisfy PL.

Given L1 is CFL==> L satisfy PL test.

$a^{n}b^{n}$ satisfies PL and is CFL.

option C.

there may be some  non-CFL but satisfies PL for CFL . 

http://cs.stackexchange.com/questions/12041/example-of-a-non-context-free-language-that-nonetheless-can-be-pumped

edited by
0 votes
0 votes

Option C.

Pumping Lemma is  a negativity test, means it can say if a Language is NOT CFL but cannot that say it IS CFL.

A Language(L) satisfying pumping lemma for CFL may/may not be a CFL. But, if L does not satisfy pumping lemma for CFL then it is surely non CFL.

In other words, if it is pumping lemma for CFL then  All CFL’s will satisfy it plus other language may also satisfy it.

Similarly, if it is pumping lemma for regular, then All regular language will satisfy it plus other language may also satisfy it.

Related questions

423
views
1 answers
2 votes
Abhisek Mukherjee asked Nov 14, 2017
423 views
0^3m over the alphabets {0,1} , m E I+ is a regular language right? We can draw the DFA for it.Which means it cannot be tested using pumping lemma for regularity ... , we have 0^(3p+1) , not acceptable by the machine.Where have I messed up?
527
views
0 answers
0 votes
rahul sharma 5 asked Jan 11, 2017
527 views
In pumping lemma it says if there is a string whose length is >=N,where N is number of states in dfa,then language of machine is infinite,but there is one upper constraing also.2N-1>=|W|>=NCan anyone tell me about the use of 2N-1 here ?
473
views
1 answers
0 votes
vivek9837 asked Oct 8, 2016
473 views
Let us say that a CFG is given in the following normal form where every production is of either typeNon-terminal →Non-terminal Non-terminal Non-terminalNon- ... to guarantee a self-embedded non-terminal in any derivation of the word w
121
views
0 answers
0 votes
jg662 asked Feb 22
121 views
Use the Pumping Lemma to show that the following languages over Σ={�,�}Σ={a,b} are not regular. In each case, carefully describe the string that will be pumped and explain why pumping it leads to a contradiction.{aaabnan∣n≥0}{ww∣w∈Σ∗}