Re: pumping lemma for CFL
- From: Robert Low <mtx014@xxxxxxxxxxxxxx>
- Date: Wed, 02 Nov 2005 19:59:50 +0000
Brian wrote:
The "basic" version of the pumping lemma goes more or less like this: If some language L is regular, then there is some number p (pumping length), where you can take any string in L of at least length p and divide it into three strings: x, y, and z, where y is not empty. Then, you can "repeat" or "pump" y up as many times as you want (>=0) and the resulting string is in L.
This is the pumping lemma for regular languages. The pumping lemma for context free languages is a little more complicated, and says that L is context free, there there is some number p such that a string longer than p is uvwxy where |vwx| is no longer than p, and v and x can be repeated as many times as you want and the result is in L.
Note that v and x must both be repeated the same number of times: you know that uvvwxxy and uvvvwxxxy are in L, but you don't know about uvvwxxxy. .
- Follow-Ups:
- Re: pumping lemma for CFL
- From: robm
- Re: pumping lemma for CFL
- References:
- pumping lemma for CFL
- From: robm
- Re: pumping lemma for CFL
- From: Brian
- pumping lemma for CFL
- Prev by Date: Re: pumping lemma for CFL
- Next by Date: Re: infinity
- Previous by thread: Re: pumping lemma for CFL
- Next by thread: Re: pumping lemma for CFL
- Index(es):
Relevant Pages
|