40 40 votes Which one of the following regular expressions is NOT equivalent to the regular expression $(a + b + c)^*$? $(a^* + b^* + c^*)^*$ $(a^*b^*c^*)^*$ $((ab)^* + c^*)^*$ $(a^*b^* + c^*)^*$ Theory of Computation gateit-2004 theory-of-computation regular-expression normal + – Ishrat Jahan 14.8k views answer comment Share Follow Print See all 7 Comments 7 7 Comments reply Show 4 previous comments ritiksri8 commented Aug 2, 2024 reply Follow flag Ans.C can't generate single a,b 2 2 replyShare js__ commented Sep 26, 2025 reply Follow flag option C is forcing to generate ab together 2 2 replyShare Omkar_Shelke commented Nov 2, 2025 reply Follow flag if you get single a,b,c , it acts like god and hence you can get (a+b)* definately in option c, you cannot get single a and b due to (ba)* coming in pair. 0 0 replyShare Please log in or register to add a comment.
Best answer 59 59 votes $(a^* + b^\ast + c^\ast)^\ast = ( \epsilon + a+aa+ \ldots +b+bb+\ldots +c+cc + \ldots)^\ast = (a+b+c+ aa+\ldots + bb +\ldots +cc+\ldots )^\ast= (a+b+c)^\ast$ [any combination of rest of $aa ,bb,cc,$ etc. already come in $(a+b+c)^\ast$ ] $(a^\ast b^\ast c^\ast)^\ast = (a^\ast+b^\ast+c^\ast +a^\ast b^\ast+b^\ast c^\ast+a^\ast c^\ast+ \ldots)^\ast=(a+b+c+\ldots)^\ast = (a+b+c)^\ast$ $((ab)^\ast + c^\ast)^\ast =(ab+c+\epsilon +abab+\ldots)^\ast = (ab+c)^\ast$ $(a^\ast b^\ast + c^\ast)^\ast = (a^\ast+b^\ast+c^\ast+\ldots)^\ast =(a+b+c+\ldots)^\ast =(a+b+c)^\ast$ Correct Answer: C. Praveen Saini answered Mar 2, 2015 • edited Jun 2, 2021 by Lakshman Bhaiya Praveen Saini comment Share Follow See all 9 Comments 9 9 Comments reply richa116 commented Jan 22, 2016 reply Follow flag @Praveen sir : (a*b* + c*)* = (a*+b*+c*+...)* =(a+b+c+..)* =(a+b+c)*!!!! string (a+b+c)* means any string of a,b,c..but String bac can not be generated by (a*b* + c*)*!!!! 1 1 replyShare rajan commented Sep 28, 2016 reply Follow flag @_pyuri by taking *=3 then u can (a*b*+c*) (a*b*+c*)(a*b*+c*) in first u take 'b' and from second u take 'a' and from third u take 'c' only then u got 'bac' 3 3 replyShare anurag agrahari commented Sep 28, 2016 reply Follow flag thanks 1 1 replyShare Chhotu commented Nov 22, 2017 reply Follow flag Hi @Praveen Saini ji, What do you want to show via intermediate expansion. If you can explain then it will be great help. 0 0 replyShare Praveen Saini commented Nov 24, 2017 reply Follow flag $(a+b + more\:strings\:from \:combinations\: of\: \{a,b\})^* = (a+b)^*$ eg: $(a+b+ab)^*= (a+b)^*$ 8 8 replyShare ayushsomani commented Dec 5, 2019 reply Follow flag @Praveen Saini @abhishekmehta4u Can we say $a^{*}b^{*}$ = $a^{*}+b^{*}$? 2 2 replyShare Anwesha_Mishra commented Jun 3, 2020 reply Follow flag We can't say that. For ex. a*b* can generate ab but a* + b* can't generate it. 3 3 replyShare Franz Kafka commented Nov 22, 2024 reply Follow flag @ayushsomani We can say, $(a^{*}b^{*})^{*}=(a+b)^{*}$ 2 2 replyShare Sagar_Dhapola commented Nov 14, 2025 reply Follow flag why ai like chat gpt,gemini giving other answe😩 0 0 replyShare Please log in or register to add a comment.
11 11 votes ((ab)* + c*)* will not produce the strings where 'a' comes without 'b' and vice-versa. Therefore, language generated by option (c) is proper subset of language genrated by (a+b+c)* . Answer would be (C). suraj answered Dec 2, 2014 suraj comment Share Follow 0 reply Please log in or register to add a comment.
10 10 votes Alone string 'a' or string 'b' can't produce by Option C So Option C is Ans. Rajesh Pradhan answered Dec 12, 2016 Rajesh Pradhan comment Share Follow See 1 comment 1 1 comment reply Sanjeev kumar Sen commented Aug 15, 2021 reply Follow flag best ans 0 0 replyShare Please log in or register to add a comment.
2 2 votes We try to genrate string a,b,c . For each expression . abhishekmehta4u answered Feb 25, 2019 abhishekmehta4u comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes as in option c ab cant be separated so we cant generate a,or b. so option c gatecrack answered Feb 24, 2019 gatecrack comment Share Follow 0 reply Please log in or register to add a comment.