GATE / CS ARCHIVE

GATE CSE 2000 / QUESTION 1.4

Equivalent starred regular expressions

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

GATE 2000, Q1.4 1 mark · MCQ
Report issue

Regular Expressions & Languages

Question 1.4, GATE 2000: Let S=(a+b*)* and T=(a+b)* over {a,b}. Are S and T in a proper-subset relation, equal, or disjoint?
Question 1.4, GATE 2000: Let S=(a+b*)* and T=(a+b)* over {a,b}. Are S and T in a proper-subset relation, equal, or disjoint?
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: Every block allowed inside S is either a or a finite run of b symbols. Concatenating such blocks can produce every word over {a,b}, since individual a and b symbols are both available.

Step 2: No other symbol can appear, so S⊆{a,b}*. The expression T also generates exactly {a,b}*, including ε.

Hence S=T, option C. The inner star on b does not restrict the outer star’s ability to concatenate individual symbols.

Original paper, page 1