Question: Consider the regular expression (a + b) a(a + b). Which of the following best describes the set of strings generated by this regular expression?
Consider the regular expression (a + b) a(a + b). Which of the following best describes the set of strings generated by this regular expression?
(a) all strings over {a, b}
(b) all strings over {a, b} with an odd number of a s.
(c) all strings over {a, b} with an even number of a s.
(d) all strings over {a, b} in which the next to last symobol is an a.
(e) none of the above.
Please explain in great detail how to get answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
