41 41 votes Let $S$ and $T$ be languages over $\Sigma=\{a,b\}$ represented by the regular expressions $(a+b^*)^*$ and $(a+b)^*$, respectively. Which of the following is true? $S \subset T$ $T \subset S$ $S = T$ $S \cap T = \phi$ Theory of Computation gatecse-2000 theory-of-computation regular-expression easy + – Kathleen 17.5k views answer comment Share Follow Print See all 9 Comments 9 9 Comments reply Show 6 previous comments JAINchiNMay commented Nov 21, 2022 reply Follow flag Where? 0 0 replyShare anon1 commented Nov 21, 2022 reply Follow flag edited 0 0 replyShare Omkar_Shelke commented Nov 2, 2025 reply Follow flag both are (a+b)* and hence they are equal and they are subset of each other but NOT PROPER SUBSET. 0 0 replyShare Please log in or register to add a comment.
Best answer 42 42 votes Correct Option: C $S=T$. Both generates all strings over $\Sigma$. Arjun answered Oct 16, 2014 • edited May 6, 2021 by soujanyareddy13 Arjun comment Share Follow See all 6 Comments 6 6 Comments reply Show 3 previous comments Satbir commented Jul 28, 2019 reply Follow flag Both $S$ and $T$ can generate all strings over $\Sigma$ so their intersection is also = all strings over $\Sigma$ (not $\phi$) 2 2 replyShare Rajesh Panwar commented Jul 28, 2019 reply Follow flag Okay got it 0 0 replyShare Jhaiyam commented Aug 4, 2020 reply Follow flag If option A would have been S⊆ T then it would be an ambiguous question. 1 1 replyShare Please log in or register to add a comment.
12 12 votes C is correct S=(a+b*)*=(a*(b*)*)*=(a*b*)* T=(a+b)*=(a*b*)* so S=T abhishek tiwary answered Dec 14, 2017 abhishek tiwary comment Share Follow See all 3 Comments 3 3 Comments reply Kripa commented Dec 20, 2017 reply Follow flag Bt string abbbabbb is not accepted by T which is accepted by S...then how S=T?Please correct me if I m wrong... 0 0 replyShare akash.dinkar12 commented Dec 20, 2017 reply Follow flag T = (a+b)* this language is set of all possible strings it will have all strings belongs to alphabet Σ={a.b} (a+b)(a+b)(a+b)(a+b)(a+b)(a+b)(a+b)(a+b)(a+b) now take a from first(a+b) then b from second(a+b)and so on... in this way ur string will be accepted by T.. 3 3 replyShare Kripa commented Dec 20, 2017 reply Follow flag Ohh...now I understand Thank You 0 0 replyShare Please log in or register to add a comment.
2 2 votes Here in this question s= (a + b*)* when we open it it will become { ε, a, b, a^2, a^3, .., b^2, b^3,.. ab, abb... }* And we know that to make it sigma* we need only (a+ b)* this deadly combo to generate all this strings so ultimately it will become sigma * . And given T is automatically in this form (a + b)* so it is also a sigma* that's why both are equal . ꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂ answered Aug 4, 2023 • edited Aug 8, 2023 by ꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂ ꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂ comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote Option C, S = T, All the below forms of REX are equivalent, (a*b*)* = (b*a*)* = (a* + b)* = (a + b*)* = (a* + b*)* = (a + b)* manikantsharma answered Aug 20, 2022 manikantsharma comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes answer is C swapnil1997 answered Dec 29, 2017 swapnil1997 comment Share Follow See 1 comment 1 1 comment reply Ekta07_GATE commented Dec 30, 2018 reply Follow flag Can we use regular expression identities over alphabet a and b? Here P and Q are regular expression (P+Q)*=(P*+Q)* P+Q=Q+P So, (P+Q)*=(Q+P)*=(Q+P*)* Also , from regular expression identities.I'm unable to obtain (P+Q*)* 1 1 replyShare Please log in or register to add a comment.
0 0 votes use this formula: (a*b*)* = (a+b)* so convert both expressions like this form and you have to use this formula too (b*)* = b* thus both are equal. Kesavan_guru_prasath answered Jun 29 Kesavan_guru_prasath comment Share Follow 0 reply Please log in or register to add a comment.