FOR FREE MATERIALS

Write regular expression for the machine M

 

 

Machine has three final states so, it has sum of three regular expressions for q0, q1, q2

qt is trap state which is not consider to calculate regular expression.

So, regular expression of  q0 = b*

Regular expression of q1 b*aa*

Regular expression of q2 = b* aa*bb*

 

Final regular expression,