If I have two regular expressions $\sf S$ and $\sf T$, what is always true of these?
options:
- Both $\sf(SS \mid T)^\ast$ and $\sf(TSS)^\ast$ are subsets of $\sf(TSS\mid STS\mid SST)^\ast$
- $\sf(TSS)^\ast$ is a subset of $\sf(SS\mid T)^\ast$
- Neither $\sf(SS\mid T)^\ast$ nor $\sf(TSS)^*$ is a subset of the other.
- $\sf(SS\mid T)^\ast$ is a subset of $\sf(TSS)^{\ast\ast}$
Here is my issue: I do not think any of these are always true (which is obviously not the case). (At first I thought 1 but after re-reading my notes, I'm unsure) Can anyone point or hint me in the correct direction WITHOUT telling me which number is correct?
Some notes (most redundant because alternation was meant instead of Kleene plus repetition):
$\sf SS^+$ means two or more repeats of $\sf S$
$\sf SS^+S, SSS^+, S^+SS$ all mean three or more repeats of $\sf S$ . They are the same pattern.
* An expression is a subset of another if all of the strings matched by the former are (some of the) strings matched by the later. This means that, at the very least, you can eliminate expressions that don't start or end in the same symbol.