2,009 views
2 votes
2 votes
Consider the Following regular expressions

r1 = 1(0 + 1)*

r2 = 1(1 + 0)+

r3 = 11*0

What is the relation between the languages generated by the regular expressions above ?

a) L (r1) ⊆ L (r2) and L(r1) ⊆ L(r3)

b) L (r1) ⊇ L (r2) and L(r2) ⊇ L(r3)

c) L (r1) ⊇ L (r2) and L(r2) ⊆ L(r3)

d) L (r1) ⊇ L (r3) and L(r2) ⊆ L(r1)

 

Also Please tell explain the value of 1(1 + 0)+ .

1 Answer

2 votes
2 votes

Option (b) and (d) both seem correct because

r1 can generate r2 and r3 

and

r2 can generate r3 

1(1 + 0)+ means at least minimum string contain 11 or 10 where string always start with (1) 

and in (1 + 0)+  means except {ε} Epsilon you can find anything

Related questions

0 votes
0 votes
1 answer
1
Vicky rix asked Apr 2, 2017
1,444 views
Find dfa's for the following languages on Σ = {a,b}.L= {w: na(w) mod 3 >nb(w) mod 3}.L= {w :(na(w) – nb(w)) mod 3 0}.
3 votes
3 votes
2 answers
2
Vicky rix asked Apr 2, 2017
623 views
Both these languages are not equivalent...right ???
1 votes
1 votes
2 answers
3
akankshadewangan24 asked Jun 26, 2017
685 views
contruct the PDA for CFG L={set of balanced paranthesis}
0 votes
0 votes
0 answers
4