2.Find the regular expression defining each of the following language over E=[a,b].
i. All strings that do not end in a double letters.
ii. all strings in which letter never triples
iii. All strings in which 'a' is triple or 'b' is triple.
i) (a + b)*(ab + ba) + a + b + /\
ii)(/\ + b + bb)(a + ab + abb)*
iii) (/\ + b + bb)(a + ab + abb)*aaa(/\ + b + bb)(a + ab + abb)* + (/\ + a + aa)(b + ba + baa)*bbb(/\ + a + aa)(b + ba + baa)*
Comments
Leave a comment