Tutorial 4 Regular Expression
Tutorial 4 Regular Expression
Tutorial: 4
Name Roll No. Group No._
b. (a + b)*(a + bb)
c. (aa)*(bb)*b
2. Write down regular expression for fallowing languages.
a. L= {Strings of 0's and 1's which have at least one pair of consecutive 0's, Each such
string must have a 00 somewhere in it}
b. L= {Strings of 0's and 1's which have no pairs of consecutive 0's}.
n m
c. L={ 0 1 : (m+n) is even}
3. Make NFA’s for the regular expression given below
a. (0+1)*1 + 1*
b. 0(0+1)*1 +0*1
4. Write a regular expression for
8.