0000
.png)
Q. is not a regular language.
Solutions:
Initially, we always assume that it is regular language and the machine is DFA.
Let n is no. of state at DFA which accepts Language.
.png)
Now decompose it by xyz with two conditions.
.png)
.png)
Here,
.png)
Now we are going to check,
.png)
This time we check for .
.png)
So, we can say,
.png)
Also | x | + | y | + | z | < | x | + 2| y | + | z | hence, | y | > 0 (true) or | y | ≥ 1 and | xy | ≤ n satisfy.
Now we can say,
.png)
| xy | ≤ n, | y | > 0 or | y | ≥ 1 then we can say | y | ≤ n because | xy | ≤ n.
.png)
Then we can say,
.png)
.png)
Now we can add (n + 1) on left-hand side of then we can say,
.png)
.png)
.png)
.png)
Now looks at the given language from language it is clear that every string ω which belongs to the language is a length of (perfect square).
So if then next string here and is perfect square.
But length of string is between and i.e. .
So, it is clear that is not perfect square because between two perfect square no perfect square is possible like here and are both perfect squares so,
.png)
Like between 9 and 16 no perfect square is possible.
So, string violating pumping lemma, so, violet pumping lemma and it is not Regular Language.