I've been playing around with converting regular languages to regular expressions and was wondering if my thinking is correct for this one.
Question:
The set of all strings that begin or end with a doubled digit, either 11 or 00. (In all cases assume the alphabet is {0,1}).
So far, I have: $((11+00) + (1 + 0)^*) + ((1+0)^*(11 + 00))$.
My thinking is that we want to take the union of: the set of strings that start with 11 or 00 followed by any sequence of 1's and 0's AND the set of strings that end with 11 or 00 preceded by any sequence of 1's and 0's.
Sorry for the somewhat clunky writing.....still trying to get the hang of styling my questions.