6 votes 6 votes $(a^*+b^*)^*$ $(a^*b^*)^*$ $(a+b)^*$ $(a+b^*)^*$ $(a^*+b)^*$ $(b^*a+a^*b)^*$ $(a+ab)^*$ $(ba+ab)^*$ Theory of Computation regular-expression theory-of-computation + – Pooja Palod asked Aug 7, 2015 • edited Aug 7, 2015 by Pragy Agarwal Pooja Palod 4.2k views answer comment Share Follow See 1 comment See all 1 1 comment reply Abhinav Rana commented Aug 19, 2015 reply Follow Share Answer is already well explained by Pragy1-6 are wired combination of (a+b)* 7th cannot produce following strings : (b,bb,bbb,....,ba,bba,baba,.....)8th cannot produce following strings : (a,b,aa,bb,aba,bab,...........) 1 votes 1 votes Please log in or register to add a comment.
Best answer 10 votes 10 votes $(a^*+b^*)^*$ $\equiv (a+a^*+b+b^*)^*$ $\equiv (a+b)^*$ $(a^*b^*)^*$ $\equiv \biggl ( (\epsilon+a^*)(\epsilon+b^*) \biggr )^*$ $\equiv \biggl ( \epsilon + a^* + a^*b^* + b^* \biggr )^*$ $\equiv (a+b)^*$ $(a+b)^*$ $(a+b^*)^* $ $\equiv \biggl (a+(b+b^*) \biggr )^*$ $\equiv (a+b)^*$ $(a^*+b)^* $ $\equiv \biggl ((a+a^*)+b \biggr )^*$ $\equiv (a+b)^* $ Note: Symmetric to 4 $(b^*a+a^*b)^*$ $\equiv \biggl ((a+b^*a) + (b+a^*b) \biggr )^*$ $\equiv (a+b)^*$ $(a+ab)^*$ Not equivalent to any other of these eight RegEx-es. $(ba+ab)^*$ Not equivalent to any other of these eight RegEx-es. Not even to 7! Pragy Agarwal answered Aug 7, 2015 • selected Aug 7, 2015 by Pranay Datta 1 Pragy Agarwal comment Share Follow See all 3 Comments See all 3 3 Comments reply Vivek sharma commented Aug 8, 2015 reply Follow Share in 1st part, how are you getiing (a + a* + b + b* )* = ( a + b)* , either intuitively or there is some formula? 0 votes 0 votes Pragy Agarwal commented Aug 8, 2015 reply Follow Share Not everything in the world is a formula. If you already have a RegEx which can generate a string of any length $(\ldots)^*$, and you have a choice of all the letters in the alphabet for every character in the string $(a+b+a^*+b^*)$ Then, you can generate any string (which can be generated with the alphabet). With that $a$ and $b$ alone you can generate any string. Having an additional choice of $a^*$ and $b^*$ won't make your language any bigger, since your language already has everything! 5 votes 5 votes Vivek sharma commented Aug 8, 2015 reply Follow Share thank you. Yeah exactly, i am getting this by intuition. I was just curious about to know if any formula exists for the above statement. 1 votes 1 votes Please log in or register to add a comment.