only have to do b and c Give regular expressions for each of the following subse
ID: 3552900 • Letter: O
Question
only have to do b and c
Explanation / Answer
b.x contains odd nunmber of b's
(a*ba*b)*a*ba*
from this we can get all strings with only one b, 3 b's ,5 b's .......
c.
for even number of a's..(b+ab*a)*
for odd number of b's ..(a*ba*b)*a*ba*
as its given 'OR' we can add them both so we get..
(b+ab*a)*+(a*ba*b)*a*ba*
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.