Let $r$ and $s$ be arbitrary regular expressions over the alphabet $Sigma$. Find a simpler equivalent regular expression: a. $r(r^*r + r^*) + r^*$ b. $(r + Lambda)^*$ c. $(r + s)^*rs(r + s)^* + s^*r^*$
The book doesn’t cover how to simplify regular expressions, so I searched online and I presumed you would use the algebraic laws for regular expressions. I was able to use these laws to come up with something for part a. only: a. $r(r^*r + r^*) + r^*$ $r(r^+ + r^*)+r^*$ $r(r^+ + r^+ + Lambda) + r^*$ $r(r^++Lambda)+r^*$ $rr^+ + rLambda + r^*$ $rr^+ + r + r^*$ I don’t know how to approach b. or c., because b. has $(r + Lambda)^*$ and c. has $(r+s)^*$, and I couldn’t find how to deal with these. Any hints?
Asked By : badjr
Answered By : Yuval Filmus
Best Answer from StackOverflow
Question Source : http://cs.stackexchange.com/questions/10077