Question: Write a regular expression for strings over {a,b} that a. contain the substring aaa b. contain an odd number of as (any number of bs)
Write a regular expression for strings over {a,b} that a. contain the substring aaa
b. contain an odd number of as (any number of bs)
c. [REMOVE} contain an odd number of as and an even number of bs
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
