The pumping lemma for regular languages states that if is regular, then some has the following property: every with can be written with , , and for every . Indeed, while a deterministic finite automaton with states reads the first symbols, two of the first visited states coincide; the intervening nonempty loop may be traversed any number of times.
The language is not regular. If its pumping length were , apply the lemma to . The pumped block is for some . Pumping once more gives zeros, but
so their number is not a square.
The language is not regular. For pumping length , take . Any permitted pumped block lies entirely among the initial zeros. Pumping it down changes the number of zeros without changing the number of ones, producing a word outside the language and contradicting the pumping lemma.
This language is not regular. If it were regular, its intersection with the regular language would be regular because regular languages are closed under intersection. That intersection is exactly
which part (ii) proved nonregular.

Articles by others on the same topic (0)

There are currently no matching articles.