Let r =1 (1+0)∗,s=11∗0andt=1∗0 be three regular expressions. which one of the following is true?
A
L(s)⊆L(r)andL(s)⊆L(t)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
L(s)⊆L(t)andL(s)⊆L(r)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
L(r)⊆L(s)andL(s)⊆L(t)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
L(t)⊆L(s)andL(s)⊆L(r)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is BL(s)⊆L(t)andL(s)⊆L(r) r=1(1+0)∗
So the language corresponds to r is all strings starting with 1.
S=11∗0
The language corresponding to s is all strings starting with 1 followed by any number of 1 and end with 0. So s has more resitrictions as compared to r.
So, L(s)⊆L(r)
t=1∗0
The language corresponding to t is all strings ending with 0. Since s has to start with atleast one 1 but t can start with zero 1s. So s has more restriction compared to t.