2

I have an pumping lemma question I totally stuck on...

L = {w ∈ {a, b, c}∗ : na (w) < nb (w) < nc (w)}

is it CFL or not?

I quest it is not CFL because it is not enough to have one stack to remember al those conditions. You can remember that na (w) < nb (w) or na (w)< nc (w),nb (w) < nc (w) but not na (w) < nb (w) < nc (w). In addition I though that if the language is a^pb^2pc^3p and than if I pumped up |vy| for p times L is not CF however is it possible tu pump up for p times?

Or any idea for the solution?

erogol
  • 13,156
  • 33
  • 101
  • 155

1 Answers1

2

Note that Pumping lemma requires every string in L to stay in L after pumping. So, it is enough to get contradiction even for some specific form of strings in L.

apb2pc3p is a nice example but I suggest to try a shorter one: apbp+1cp+2.

The reasoning is almost the same as in the Wikipedia article: Pumping lemma:Usage. You will have the same five cases and it's quite straightforward to get contradiction in each one.

max taldykin
  • 12,459
  • 5
  • 45
  • 64