Note:--> Do Upvote the answer if U like it and have any doubt comment it
We can prove any language Not regular by using Pumping Lemma
Pumping Lemma Definition
Let L be a regular language, recognized by a DFA with p states
And Let x ∈ L with |x| ≥ p, there exists u, v, w ∈ Σ∗, such that x
= uvw, and
(1) |uv| ≤ p
(2) |v| ≥ 1
(3) for all i ≥ 0: uviw ∈ L
L = { ( a,b} * | v = v^R }
Lets See how we can proof That L is not Regular by contradiction To do so we need to find a string that is possible acc to pumping lemma but not in L then we say L is not regular
Steps
1. We have a DFA for above language with states p
2. Now choose a x ∈ L such that it will contradict the lemma
3. So we take x = ap b ap so x is a palindrome, so x∈L Also, |x| = 2p+1 ≥ p
According to given first two Condition we have
for some k , m >0 so that k+m ≤ p and m≥1
Now we need to show that for some values of i uviw ∈ L doesn't hold
Let take For example i = 2
u v v w = ak am am ap-m-k b ap
= ap+m b ap -------- 1
Now Reverse of ( uvvw)R = ap b ap +m ------------ 2
From 1 and 2 we get
(uvvw) is not equal to ( uvvw)R
Conclusion:-->Therefore uv2z ∉L So we saw that we have satisfies all three conditions But we get a uv^2w that doesn't belong to L So it contradict the Lemma
Hence we Say that L is not regular
So this is how we can prove any language is non regular
Thank You
Prove that language Lon{a,b}, L={ vv = vR} is not regular.
Prove that language Lon {a, b}, L={ v . v = vR} is not regular.
Prove that language Lon {a, b}, L={v | v = vR} is not regular.
Prove that language L on {a, b}, L={ v | v = vR} is not regular 4. (20 points) Prove that language Lon{a, b}, L={v | V = VR} is not regular.
With Proper Steps and explanation Prove that language Lon {a, b}, L={v | V = VR} is not regular.
Prove that language L on {a, b}, L={ v | v = vR} is not regular use string ab^nab^na
If L is a regular language, prove that the language {uv : u ∈L, v ∈LR} is also regular
2. If L is a regular language, prove that the language 11 = { uv/ u E 1 , |v|-2) is also regular. (Hint: Can you build an NFA of L1 using an NFA of a language L? Use N, the NFA of the language L)
Prove that for each regular language L the following language is regular: shift(L) = {uv | vu ∈ L}
Suppose that L is a regular language. Prove that the language p r e f i x (L )={w | x, wx L } is regular. (For example, if L = {abc, def}, prefix(L) = {?, a, ab, abc, d, de, def}.)