Question

In: Computer Science

1. Prove by contraction that    L = {0^x 1^y 0^x+y | x >= 1 and...

1. Prove by contraction that

   L = {0^x 1^y 0^x+y | x >= 1 and y >=1} is not Regular.

   Must use the Pumping Lemma.

[ HINT: Describe the language in English first. Use example 3 from the lecture notes ]

a) Choose one S from L where S is longer than N

      (Describe S in terms of N and M)

      S = **??**

b) List all places v can be in S: (i.e. all possible uvw mappings)

      (Note: v has to be in the first N chars)

      v has to be where?       ?**?

c) For each possible place for v in #2 above, is there is a way to repeat/skip v to make it

        go out of the language L?

  • Where v is:                                   ?**?
  • Repeat factor: i =                      ?**?
  • What does u v^i w look like?    ?**?
  • Is u v^i w in L?                               ?**?

   Thus, there was no way to break S into uvw and repeat or skip v

     as much as we want. We found a counter example S that does not satisfy Pumping Lemma.

d) Conclusion about L:    ?**?

Solutions

Expert Solution

Question : To prove that the language is not regular.

Solution : According to the pumping lemma there exists a string "s" such that it can be decomposed into three strings;

s = uvi w such that

(i) v is not equal to epsilon

(ii) | xy | <= n

Upon pumping " v " , the string so obtained must be in the language L otherwise it is not regular.

The language is { 0x 1y 0x+y | x >=1 and y >=1 } // Any number of zeroe's followed by any number of one's followed by the sum of occurences of previous 2 symbols

Let us take a string in L :

s = 00110000 // x =2 and y =2

Decomposing " s " into " u " , " v " and " w " .

v = 11

u = 00

w = 0000

These substrings satisfy the conditions of the pumping lemma . Moving forward :

Pumping " v " with i = 2

v = 1111

u = 00

w = 0000

s = uv2w = 0011110000 is the string obtained .

Upon observing the string it is clear that x = 2 and y =4 , so x+y = 6 .

But " w " only contain 4 zeroes rather than 6 .

Hence the string is not in the language L and it is not Regular.


Related Solutions

. Let x, y ∈ R \ {0}. Prove that if x < x^(−1) < y...
. Let x, y ∈ R \ {0}. Prove that if x < x^(−1) < y < y^(−1) then x < −1.
Given f(x,y) = 2 ; 0< x ≤ y < 1 a. Prove that f(x,y) is...
Given f(x,y) = 2 ; 0< x ≤ y < 1 a. Prove that f(x,y) is a joint pdf. b. Find the correlation coefficient of X and Y.
Use simulation to prove that when X ∼ N(0, 1), Z ∼ N(0, 1), Y =...
Use simulation to prove that when X ∼ N(0, 1), Z ∼ N(0, 1), Y = X3 + 10X +Z, we have V ar(X +Y ) = V ar(X) +V ar(Y ) + 2Cov(X, Y ) and V ar(X −Y ) = V ar(X) + V ar(Y ) − 2Cov(X, Y ).
y=a+bx b <0 prove that x and y are perfectly negatively correlated
y=a+bx b <0 prove that x and y are perfectly negatively correlated
for each of the five functions f1-(x,1/y) ,f2-(0,y) ,f3 (x+2y,y) ,f4-(x-2,y+1) ,f5 (x,y^3-y) prove or disprove...
for each of the five functions f1-(x,1/y) ,f2-(0,y) ,f3 (x+2y,y) ,f4-(x-2,y+1) ,f5 (x,y^3-y) prove or disprove that fn is distance-preserving
Let x, y ∈ R. Prove the following: (a) 0 < 1 (b) For all n...
Let x, y ∈ R. Prove the following: (a) 0 < 1 (b) For all n ∈ N, if 0 < x < y, then x^n < y^n. (c) |x · y| = |x| · |y|
f(x,y)=3(x+y) 0<x+y<1, 0<x<1, 0<y<1 (a) E(xy|x)=? (b) Cov(x,y)=? (c) x and y is independent? thank you!
f(x,y)=3(x+y) 0<x+y<1, 0<x<1, 0<y<1 (a) E(xy|x)=? (b) Cov(x,y)=? (c) x and y is independent? thank you!
1 Let f(x, y) = 4xy, 0 < x < 1, 0 < y < 1,...
1 Let f(x, y) = 4xy, 0 < x < 1, 0 < y < 1, zero elsewhere, be the joint probability density function(pdf) of X and Y . Find P(0 < X < 1/2 , 1/4 < Y < 1) , P(X = Y ), and P(X < Y ). Notice that P(X = Y ) would be the volume under the surface f(x, y) = 4xy and above the line segment 0 < x = y < 1...
Solve the IVP using Laplace transforms x' + y'=e^t -x''+3x' +y =0 x(0)=0, x'(0)=1, y(0)=0
Solve the IVP using Laplace transforms x' + y'=e^t -x''+3x' +y =0 x(0)=0, x'(0)=1, y(0)=0
Given the differential equation y''+y'+2y=0,  y(0)=−1,  y'(0)=2y′′+y′+2y=0,  y(0)=-1,  y′(0)=2 Apply the Laplace Transform and solve for Y(s)=L{y}Y(s)=L{y}. You do not...
Given the differential equation y''+y'+2y=0,  y(0)=−1,  y'(0)=2y′′+y′+2y=0,  y(0)=-1,  y′(0)=2 Apply the Laplace Transform and solve for Y(s)=L{y}Y(s)=L{y}. You do not need to actually find the solution to the differential equation.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT