Write a regular expression for the following languages, over sigma=(a,b) All strings that do not end with aa.All strings that contain an even number of b’s. All strings which do not contain the substring ba.
Given,
Condition (i) It is not ending with aa:
Not end with aa
ends with ab, ba, bb
For the second condition:
even no of
For the third condition:
not contained ba
Comments