I have the alphabet {0,1}, and I want to find the complement of the language described by the regular expression (0+10)*. As far as I understand, it must be a string containing anything but the part "10", namely it can be an empty string, or a string containing "00", "01", or "11" and every combination of these. The tutorial I am following gives these possible solutions that I can't fit the answer in:
1) (0+1)*11(0+10)* + (0+1)*1
2) (0+1)*11(0+10)* + (0+10)*1
3) (0+1)*(1+11)(0+1)*
4) (0+10)*11(0+10)*
I have been through the proces of e-NFA, DFA, and back to a regular expression which can be seen here: e-NFA, DFA and complemented DFA
With 1, 2, 3, and 4 given by:
1 = {B, C, D, E}
2 = {B, C, D, E, F, H}
3 = {I}
4 = {B, C, D, E, G, H}
Which gives me the following complemented regular expression that doesn't seem to be any near 1 through four above:
(1+00*1)*(0(1+00*1))* = 0(1+00*1)
I hope someone can clarify this. Thanks in advance, J.