Skip to content
Official PYQ · 1991

GATE CS 1991 Q03 — Regular Expressions and Finite Automata

Explain with AI

Let r=1(1+0)∗,s=11∗0 and t=1∗0r=1(1+0)^*, s=11^*0 \text{ and } t=1^*0 be three regular expressions. Which one of the following is true?

Select all correct options
View worked solution

Answer: A;C

Let us analyze the languages generated by the three regular expressions:

  • L(r)=L(1(1+0)∗)L(r) = L(1(1+0)^*): The set of all strings over {0,1}\{0, 1\} that start with the symbol 11.
  • L(s)=L(11∗0)L(s) = L(11^*0): The set of strings consisting of one or more 11s followed by exactly one 00 (i.e., 1+01^+0).
  • L(t)=L(1∗0)L(t) = L(1^*0): The set of strings consisting of zero or more 11s followed by exactly one 00.

Now, let us check the subset relations:

  1. L(s)⊆L(r)L(s) \subseteq L(r): Every string in L(s)L(s) starts with at least one 11, so it must belong to L(r)L(r) (which contains all strings starting with 11). Hence, L(s)⊆L(r)L(s) \subseteq L(r) is true.
  2. L(s)⊆L(t)L(s) \subseteq L(t): Since 1+0⊆1∗01^+0 \subseteq 1^*0, every string in L(s)L(s) is also in L(t)L(t). Hence, L(s)⊆L(t)L(s) \subseteq L(t) is true.

Since both conditions hold, both options A and C (which are logically identical) are correct.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Regular Expressions and Finite Automata questions