Question: 2. Consider the language L defined by the regular expression: a +b)(ab+ba)*(a +b). (a) Find a regular expression which defines Pref (L), the set of

2. Consider the language L defined by the regular expression: a +b)(ab+ba)*(a +b). (a) Find a regular expression which defines Pref (L), the set of all prefixes of strings in L (b) Find a regular expression which defines the intersection of L with another language, ((aa+bb)")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
