Question

In: Computer Science

(35 pt.) Prove that the following languages are not regular using the pumping lemma. (15pt.)?={?????? |?,?≥?}...

  1. (35 pt.) Prove that the following languages are not regular using the pumping lemma.

    1. (15pt.)?={?????? |?,?≥?}

    2. (20 pt.) ? = {? ∈ {?, #}∗ | ? = ??#??# ... #?? ??? ? ≥ ?, ?? ∈ ?∗ ??? ????? ?, ??? ?? ≠?? ???????? ?≠?}
      Hint: choose a string ? ∈ ? that contains ? #’s.

Solutions

Expert Solution

Prove that the following languages are not regular using the pumping lemma.
?={?????? |?,?≥?}

Solution:-----.
To prove that L is not a regular language, we will use a proof by contradiction. Assume that L is regular. Then by the Pumping Lemma for Regular Languages, there exists a pumping length, p for L such that for any string s ∈ L where |s| ≥ p, s = xyz subject to the following conditions:
(a) |y| > 0
(b) |xy| ≤ p, and
(c) ∀i > 0, xyiz ∈ L.
Choose, s = 0p10p . Clearly, |s| ≥ p and s ∈ L. By condition (b) above, it follows that
x and y are composed only of zeros. By condition (a), it follows that y = 0k for some
k > 0. Per (c), we can take i = 0 and the resulting string will still be in L. Thus, xy0z should be in L. xy0z = xz = 0(p−k)10p . But, this is clearly not in L. This is a contradiction with the pumping lemma. Therefore our assumption that L is regular is incorrect, and L is not a regular language.


Related Solutions

Prove that {anbamba2m+n:n,m≥1} is not regular using pumping lemma
Prove that {anbamba2m+n:n,m≥1} is not regular using pumping lemma
Use the pumping lemma to show that the following languages are not regular. A a. A1={0^n...
Use the pumping lemma to show that the following languages are not regular. A a. A1={0^n 1^n 2^n | n≥0} b. A2 = {www | w ∈ {a,b}∗} A c. A3 ={a^2^n | n≥0} (Here, a^2^n means a string of 2^n a’s.) A ={a3n |n > 0 }
Use the pumping lemma to show that the following languages are not regular (c) (5 pts)...
Use the pumping lemma to show that the following languages are not regular (c) (5 pts) Let Σ = {0, 1, −, =} and SUB = {x = y − z | x, y, z are binary integers, and x is the result of the subtraction of z from y}. For example: 1 = 1 − 0, 10 = 11 − 01 are strings in SUB but not 1 = 1 − 1 or 11 = 11 − 10.
1. Pumping Lemma: a. Is the following language a regular language? (Use pumping lemma in proof.)...
1. Pumping Lemma: a. Is the following language a regular language? (Use pumping lemma in proof.) L = {0n 1n 2n | n ≥ 0} b. What is (i.e., define) the CFL pumping lemma?
Do not use Pumping Lemma for Regular Expression to prove the following. You may think of...
Do not use Pumping Lemma for Regular Expression to prove the following. You may think of Closure Properties of Regular Languages 1. Fix an alphabet. For any string w with |w| ≥ 2, let middle(w) be the string obtained by removing the first and last symbols of w. That is, Given L, a regular language on Σ, prove that f1(L) is regular, where f1(L) = {w : middle(w) ∈ L}
Using the pumping lemma, prove that the language {1^n | n is a prime number} is...
Using the pumping lemma, prove that the language {1^n | n is a prime number} is not regular.
Are the following languages over {a, b} regular? If they are then prove it. If they...
Are the following languages over {a, b} regular? If they are then prove it. If they are not prove it with the Pumping Lemma a) {ap | p is a prime number} b) {xax | x Î{a,b}*} (start by listing some strings in, not in, the language
Is the following language a regular language? ( Prove with pumping Lenma ) L = {...
Is the following language a regular language? ( Prove with pumping Lenma ) L = { o^n 1^n 2^n | n => 0} Define CFL pumping lemma
Show that L2 = {anb2nan : n ≥ 0} is not context-free using the pumping lemma.
Show that L2 = {anb2nan : n ≥ 0} is not context-free using the pumping lemma.
Use Myhill-Nerode Theorem to prove the following languages are not regular A1 = {0n1n2n| n >=...
Use Myhill-Nerode Theorem to prove the following languages are not regular A1 = {0n1n2n| n >= 0} A2 = {www| w E {a, b}*}
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT