What are the rules of regular expression arithmetics ?
For example: Let $\Sigma=\{0,1\}$
$1. 1+01=(\epsilon+0)1$.
$2. (\epsilon+00)^*=(00)^*$
|
What are the rules of regular expression arithmetics ? For example: Let $\Sigma=\{0,1\}$ $1. 1+01=(\epsilon+0)1$. $2. (\epsilon+00)^*=(00)^*$ |
|||
| show 1 more comment |
|
Off the top of my head you have at least the following:
If your formalization includes $\varnothing$ (no string) distinct from $\epsilon$ (empty string), you have $\varnothing+\alpha=\alpha$. |
|||
|
|
+is either an ordinary character, or means "one or more times the regular expression preceding it" (i.e. like*, but excluding the empty string). Here, it seems to mean something different (maybe "or")? – celtschk Aug 12 '12 at 9:14