Determine whether or not this language is regular. Justify your answer. $$L = {ww : w in {a,b}^* }$$
I think this language is not regular because $w$ can be of arbitrary length and adheres to no pattern. So, therefore, it cannot be determined whether $ww$ is part of the language using a finite number of states. Am I correct in this assumption, and does my explanation make sense? Thanks for any help you can give me! My answer, after reading the comments below: Let $w = ww = (a^p)(b^p)(a^p)(b^p)$. Then consider the Pumping Lemma. Since $|xy| leq p $ and $|y| geq 1$, then the $y$ part of the string must be a’s. But if we pump up, we’ll have more a’s in the first part than the second, and $w neq w in ww$. Hence, the language can’t be regular.
Asked By : Victor Brunell
Answered By : jkff
Best Answer from StackOverflow
Question Source : http://cs.stackexchange.com/questions/38459