1 1 vote (r + s)* = r* + s* why this expression is false? Theory of Computation + – arch 5.2k views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply akash.dinkar12 commented Nov 5, 2017 reply Follow flag if u have to generate "rs" string then how will u generate from right-hand part of ur expression??? 0 0 replyShare LeenSharma commented Nov 6, 2017 reply Follow flag because regular expression $(r+s)^{*}$ can generate any string with input symbol r and s. but strings generated by the regular expression $r^{*}+s^{*}$ =$\left \{ \epsilon,r,rr,rr....,s,ss,sss... \right \}$ $(r+s)^{*}\equiv (r^{*}+s^{*})^{*}\equiv (r^{*}+s)^{*}\equiv (r+s^{*})^{*}\equiv (r^{*} s^{*})^{*}\equiv (s^{*}r^{*})^{*}$ All these are equivalent. 1 1 replyShare Please log in or register to add a comment.
Best answer 3 3 votes here value of * indicate the length of string...say *=2 now look at LHS (r+s)^2.. we can write it as (r+s)(r+s)...means from 1st bracket pick r or s and from 2nd one pick r or s ...say form first we have r and form 2nd one we have s .....and there is concatenation in them hence resultant string is "rs".. coming to RHS we have r* + s* now put *=2 we get (r)(r) + (s)(s) which is same as "rr+ss"....means no we we can have combination as "rs" or "sr"....only string of "r" or "s "...is possible hence they are not equivalent.... SHUBHAM SHASTRI answered Nov 6, 2017 • selected Nov 6, 2017 by Rishabh Gupta 2 SHUBHAM SHASTRI comment Share Follow See 1 comment 1 1 comment reply arch commented Nov 6, 2017 reply Follow flag thank u 0 0 replyShare Please log in or register to add a comment.