Answer to Question #216275 in Algorithms for nurain

Question #216275

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.


1
Expert's answer
2021-07-12T17:18:37-0400
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)*


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS