We are going over the pumping lemma in class and we recently went over the following example:
- Let $$ L = \{ w \mid w \text{ has a different number of 0s and 1s} \} $$
- Consider $$ s = 0^P1^\left(P+P!\right) $$
- $ s $ can be divided into $ s = xyz $
- Consider $$ y = 0^m; 0 \leq m \leq P $$
- Let $ i = \frac{P!}{m} + 1 $
- $$ xyz = 0^\left(P + \left(i - 1\right)m\right)1^\left(P + P!\right) \notin L $$
Forgive me if the example is not put together well. This example didn't quite get finished in class. Feel free to expand on this if need be.
However, my question is how does one know to use a factorial in the first place when approaching this proof?
Actually, to show that this language is not regular it is much easier to show that its complement is not regular.
– Shaull Feb 20 '13 at 07:25