I am relatively new to the pumping lemma, and I have a problem here that I think I answered correctly, can anyone tell me if this works and if not why not
The problem: {www | w is {a,b}*}
My approach:
L = www
u* (v^k) * w has to be a subset of L
www
| | |
uvw
uvw = www
(u)(v^2)(w) = wwww
wwww is not part of the language www and therefore not regular
Edit: Well my according to my understanding the pumping lemma by taking the "test string" we are looking at and splitting it into a portion that stays the same follow by a portion that is repeatable and then lastly another portion that remains the same. In my "approach" I took the test string "www" and split it into u,v, and w each respectively holding a single "w", with v being the repeatable section and the other two being the ones that remain the same. I double the v section and end up with a resulting uvvw which translates to wwww which appears as if it is not a part of the language www. I have a good feeling that I am wrong because of the condition "w is {a,b}*" which I think includes the empty string, and since the empty string is viable in wwww and www my pumping lemma is faulty. I would just like to know what approach I would have to take to tackle such a problem, its just a practice problem