Question: Provide regular expressions for the following languages. ( a ) L 1 = { w in { 0 , 1 } | w contains both

Provide regular expressions for the following languages.
(a) L1={w in {0,1}
| w contains both 111 and 0110 as substrings}
(b) L2={a
3p+4b
q
| p, q in Z
nonneg, q >=2}
(c) L3={w in {a, b}
| w does not start with aba}
[Note: Make sure that you are thinking about all strings that do not start with aba.]
(d) L4={w in {0,1}
| n0(w)=1 and n1(w)=3k for some k in Z
nonneg}
(e) L5={w in {a, b}
| w starts with ab and does not have consecutive bs anywhere}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!