Pumping Lemma Writeup
Pumping Lemma Writeup
Pumping Lemma Writeup
Solution:
L is infinite. Suppose L is also regular. Then according to pumping lemma there exists an integer
n such that for every string w in where |w| >= n, we can break w into three strings w = xyz such
that:
|y| > 0 , |xy| <= n and for all k>=0 , the string xykz is also in L.
1
CS311 Winter 05 Ammara Shabbir
Solution:
L is infinite. Suppose L is also regular. Then according to pumping lemma there exists an integer
n such that for every string w in where |w| >= n, we can break w into three strings w = xyz such
that:
|y| > 0, |xy| <= n and for all k>=0 , the string xykz is also in L.
2
CS311 Winter 05 Ammara Shabbir
Pumping Lemma alternates between “for all” and “there is at least one” or “for every” or
“there exists”. Notice: