Determine whether the following language is CFG(context free language)
If its not prove by pumping lemma
L1 = {anbmck dr | 2n = 3k and 5m = 7r}
answer)
proof by pumping lemma for context free languages:
1)assume given language is context free and there exist a pda for this.
2)take a valid string from L.
z=aaaaaaacccc
consider n=6 and k=4 then 2n=3k
consider m=0 and r=0
3)divide the string z into 5 parts. u,v,w,x,y
u=aaaa,v=a,w=a,x=c,y=ccc
4)if for any value of i,uviwxiy belongs to L then L is context free otherwise not.
say i=2 the uvixyiz becomes aaaaaaaccccc this is not belongs to L.
this is contradiction to our given statement.therefore this is not context free language.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ANSWER :-
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
=>The given language is not a context free language.
=> We cannot make its derivation tree, its context free grammar is not possible.
=> For a grammar to be context free comparison between one pair should not contradict comparison between other pair.
EXPLANATION -




Determine whether the following language is CFG(context free language) If its not prove by pumping lemma...
Determine whether the following language is CFG(context free language) If its not prove by pumping lemma L2 = { an | where n is a power of 2}
use
the pumping lemma for context free languages to prove the language
is not context free.
B = {w#t | w is a substring of t, where wit e {a,b}*}. Hint: consider s = apbº#apba.
Is the following language context free or not? (prove / disprove using pumping lemma for CFL ) L = {0n 1 0n | n >= 1}
5.) Is the following language context free or not? (prove / disprove using pumping lemma for CFL ) L = {0n 1 0n | n >= 1}
Does a non-context-free language exist that doesn't break any of the rules of the pumping lemma for context-free languages? Yes. If a language is finite, it will pass the pumping lemma. No. Since the pumping lemma is used to prove a language is not context-free, a non-context-free language has to break the rules of the pumping lemma. No. If the results of a pumping lemma proof are inconclusive, a bad string was chosen. Yes. Otherwise, we could use the pumping...
Theory of Computation - Non Context Free Languages
Use the Context-Free Pumping Lemma to prove that the following
language is NOT context-free:
show that the language is context-free, or use the pumping lemma
to show that the language is non-context-free
.
waxl w.x e fo.1 and w contains the substring
Use the CFL (Context Free Language) Pumping Lemma to show each of the following language not to be context-free: a) {a^n b^n c^i | i < n} b) {www | w is a binary string over {0,1}} SHOW ALL WORK AND LEAVE NO STEPS OUT!! NEED THIS ASAP! THANKS!!
(Automata): prove using the pumping lemma that the following language is not context-free: where: ; b)using closure properties and the previous proof, show that the following language is not context free language: Really need your help with this, it is important for the test. please explain what you to do so i can study it throughly. thank you very much! Labc be...bc2m de fefefnghqhq.h 1, т > п> о >0; > т,п, о 0; /12, ...j2n0; k1, k2,.. k, >...
5. Is the following language A context-free? You either show that A is context-free by giving a context-free grammar for A, or prove that A is not context-free language using the context-free language pumping lemma