Assignment 2
Assignment 2
(An ISO – 9001: 2008 Certified & ‘A’ Grade accredited Institution by NAAC)
Q4.Find all strings of length 5 or less in the regular set represented by the following:
a). (ab + a)*(aa + b).
b). (a*b + b*a)*a.
Q5.Describe, in the English language , the sets represented by the following regular expressions:
a). a(a +b)*ab.
b). a*b +b*a.
Q6.Find the regular expression corresponding to the automaton given in following figure.
q0 q1
q3 q2
Q7.Construct a finite automaton accepting all strings over {0,1) ending in 010 or 0010.
Q10. Construct regular expression for all string containing even no of 0’s over {0, 1}.
Q11. Write the regular expression for L=(W ɛ {0, 1}* : w has no pair of consecutive 0’s.
Q14. Find the regular expression recognized by the following transition diagram:
a)
b)