Asked By : MannfromReno
Answered By : Rick Decker
- $|vxy|le p$
- $|vy| > 0$
So if we let $v=0^k, y = 0^j$, we have from (1), $k + j =|vy| le |vxy| le p$ and from (2), $k + j=|vy|>0$. In other words,
$0<k+jle p$
Now pump up: The PL assures us that $uv^2xy^2zin L$, and observe $$ |uv^2xy^2z| = 2^p+(k+j)le 2^p+p< 2^p+2^p=2^{p+1} $$ as long as $p>0$, so the pumped string $uv^2xy^2z$ has length strictly between $2^p$ and $2^{p+1}$. No such string can be in $L$, so we have a contradiction to the PL implication that $uv^2xy^2zin L$ and so our initial assumption, that $L$ was a CFL, must be false. You could shorten this proof if you knew that (1) any context-free language over a 1-symbol alphabet must be regular and (2) the language $L={0^{2^n}mid nge 0}$ is not regular.
Best Answer from StackOverflow
Question Source : http://cs.stackexchange.com/questions/32338 Ask a Question Download Related Notes/Documents