GATE / CS ARCHIVE

GATE CSE 1991 / QUESTION 3(xiii)

Regular-expression inclusions

Theory of Computation · Regular Expressions & Languages · Full GATE CSE 1991 paper

GATE 1991, Q3(xiii) 2 marks · MSQ
Report issue

Regular Expressions & Languages

Question 3(xiii), GATE 1991: Let r=1(1+0)*, s=11*0, t=1*0. Choose A L(s)⊆L(r) and L(s)⊆L(t); B reverse first inclusion; C L(s)=L(t); D L(t)⊆L(s); E none.
Question 3(xiii), GATE 1991: Let r=1(1+0)*, s=11*0, t=1*0. Choose A L(s)⊆L(r) and L(s)⊆L(t); B reverse first inclusion; C L(s)=L(t); D L(t)⊆L(s); E none.
Tap to enlarge
Select all that apply
Answer & solution

Answer: A (no official key was published)

Every s-word is one or more 1s followed by a single 0. It starts with 1 and has an arbitrary binary suffix, so it belongs to r. It also consists of zero or more 1s followed by 0, so it belongs to t. The inclusions are strict: 1 belongs to r but not s, and 0 belongs to t but not s. These witnesses refute the reverse inclusion and equality choices. Kleene star in 11*0 applies only to the second 1; the mandatory initial 1 is what excludes 0 from s.

Original paper, page 4