edited by
18,055 views
20 votes
20 votes

This is from the first chapter questions of Sipser's book on TOC. I am stuck in some of the questions where we are asked to find the pumping length of the following languages. 

Find the minimum pumping length of the following regular languages:-

  1. L=$0^*1^+0^+1^* \cup \ 10^*1$ 

  2. L=001 U 0*1* 

  3. L=0*1*
  4. L=10 (11* 0)* 0 
  5. L= ∊
edited by

1 Answer

Best answer
35 votes
35 votes

(Definition) If L is a regular language, then there is a number p (the pumping length) such that s is any string in L of length p or more can be written as s = xyz, satisfying the following conditions :

1. for each i$\geq$ 0 , xyiz ∈L,

2. |y|>0, and 

3. |xy|$\leq$p.

So we need to find the minimum length string s = xyz ∈ L such that xyiz should also be L.
Remember:     

 i) y $\neq$ ∊ , point 2 of definition  |y|>0 means only that.

  ii) y should be in closure (loop) that repeats ,so that we get xyiz∈L
  iii) Don't Worry about Unions, only we need to find s = xyz ∈L that satisfying i) and ii) above said. 

Now 

Q1. 0*1+0+1* U 10*1

s= xyz =101 , where x=1 , y=0 and z=1  such that xyiz∈L ( that is 10*1, look i >=0)

Minimum Pumping length = 3
( if you are confused that 11 in L and have minimum length, then remember point2 of definition y $\neq$ ∊ and secondly when you will put i=0 in xy
iz you will get 11 ∈L )
 

Q2. L = 001 U 0*1* 

s= xyz = 0 , where x=∊,y=0 and z=∊ such that xyiz∈L (that is 0*∊)

Minimum Pumping length = 1

Q3. L = 0*1* 

Minimum Pumping Length = 1 (refer Q2)

Q4. L = 10(11*0)*0

s = xyz = 10100 where x=10,y=10 and z=0 such that xyiz∈L (that is 10(1∊0)*0  )

Well it looks Minimum Pumping length is 5 , But it is not, We can repeat y any time (or it should be) and y$\neq$ ∊ that mean we cannot use 3 or less length string from L for pumping , So y can be 10 (minimum) so minimum string S we using for pumping is 10100  of length 5, but length 4 string can not generated from the given language (that's not our fault). So we can say we use 4 or more length string s for pumping that belongs to L. 

So Minimum Pumping length = 4.

Q5.  L= ∊

Ideally its length 0 only s = xyz = ∊, where x = ∊ , y = ∊ and z = ∊ But y$\neq$ ∊ 

So we say, Minimum pumping length = 1

selected by

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
1 answer
3
atulcse asked Jan 28, 2022
576 views
What is meant by ‘pumping length’ and how can we find it?
0 votes
0 votes
1 answer
4
pC asked Jan 29, 2016
654 views
What is the basic Conditions for Pumping Lemma of RL and CFLI found different ans in different sourcesAlso Tell me what is a pumping length ?IS there any minimum pumping ...