is not a CFL.
choose
large enough so that , by the CFL pumping lemma,
with
for all
and some
.
Moreover,
Let
and
, some
, for all
.
However this is not possible since
, a constant and
. In particular the sequence
,
is not constant.
Check if
or
. If
reject. If
accept.
Check, by going left to right if the string has even or odd number of zeros
If odd then "reject"
If even then go back left, erasing half the zeros.
goto 1.