Let A = {aibjck | i > j > k}. Use the pumping lemma for context-free languages to show that A is not context-free.
Assuming the question says a^ib^jc^k (^ depicts power here) i>j>k;
Solution:
This is a proof by contradiction.
Let's assume that the language A is context free, so, pumping Lemma must hold for A.
Let s = a^(n+2)b^(n+1)c^n since i>j>k, here, i = n+2, j = n+1, k = n; It can be seen that |s| >= n, we must express s as uvwxy such that |vwx| <= n, |vx| >= 1. Since, |vwx| <= n, uvwxy can be expressed in five ways:
1. vwx is a^p for some p<=n, p>=1 2. vwx is a^p b^q for some p+q<=n, p+q>=1 3. vwx is b^p for some p<=n, p>=1 4. vwx is b^p c^q for some p+q<=n, p+q>=1 5. vwx is c^q for some i<=n, i>=1
It is clear that vwx cannot contain both "a" and "c" because |vwx| <= n. So, for all the cases, if it is a context free language
u v^i w x^i y, i >= 0, should be in the language.
Disproving all the cases:
Case 5: if i=2, "c" will be added to the string making count of "c" n+1, which is not in the language.
eg: uv(vwx)xy, uv(c^q)xy, thus having more than n c;
Case 2: if i=2 either no. of "a" > no. of "b" or no. of "b" > no. of "a".
Case 3: same as in case 5, no. of "b" = no. of "c", j>k condition doesn't hold.
Case 4: if i=0, uvwxy -> u(w)y -> u(bc)y -> say y is "c" and u is "a" -> abcc, j>k condition doesn't hold.
Case 1: vwx = a^p, let p=1, u(vxw)y -> u(a)y, y = bbbc, u=a, aabbbc, i>j>k condition doesn't hold.
So, the language is not context free.
It can also be proved like since the language a^ib^jc^k i<j<k is not context free so the above given language will also not be context free.
Let A = {aibjck | i > j > k}. Use the pumping lemma for context-free...
Prove {0^i #0^j #0^(ij) | i, j ≥ 0} is not context free using the pumping lemma for context free languages.
Theory of Computation - Non Context Free Languages
Use the Context-Free Pumping Lemma to prove that the following
language is NOT context-free:
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.
2. (6 pts) Use the pumping lemma for context-free languages and the string s = ap + 1 bpcP+1 to show that L (amb"cm | 0 < n < m} is not context-free.
2. (6 pts) Use the pumping lemma for context-free languages and the string s = ap + 1 bpcP+1 to show that L (amb"cm | 0
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...
Use the pumping lemma to show that the following languages are not context free: a)0^n0^2n0^3n;n>=0 b) {w#x \ where w.x e {a,b) * and w is a substring of x} c) (a^ib^ja^ib^j|i,j>0) answer should be very clear .otherwise I will down vote .
2. (10 points) Use the pumping lemma for context free grammars
to show the following languages are not context-free.
(a) (5 points)
.
(b) (5 points)
L = {w ◦ Reverse(w) ◦ w | w ∈ {0,1}∗}.
I free grammar for this language L. lemma for context free grammars to show t 1. {OʻPOT<)} L = {w • Reverse(w) w we {0,1}*). DA+hattha follaurino lano
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
Can someone use pumping Lemma to show if these are regular
languages or not
c) Is L regular? give a finite automaton or prove using pumping lemma. (d) Is L context-free? give a context-free grammar or pushdown automaton, otherwise pr using pumping lemma. (16 pts)Given the set PRIMES (aP | p is prime (a) Prove that PRIMES is not regular. (b) Prove that PRIMES is not context-free. (c) Show if complement of PRIMES (PRIMES ) is regular or not. d)...
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!!