exam preparation and this problem:
Determine if the rowset represented by R1 is a subset of R2?
R1 = (01 +10)* R2 = ((01)* + (10)*)
My attempt: Since the same expression exists, I tried to prove that they are the same R1 ⊆ R2
I tried to show that R2 matches R1: so I tried this using the regex equivalence theorem:
((01 + ε) * + (10 + ε)) = (01 + ε) + (10 + ε) *
now I'm stuck, I'm thinking of applying the associativity rule here and showing that (01 + ε) * + (10 + ε) * = (01 + 10) * + (ε + ε) * = (01 + 10) * / / I think this step may be wrong
thus R2 = R1
Step: (01 + ε) * + (10 + ε) * = (01 + 10) * + (ε + ε) * = (01 + 10) *
I think it’s wrong, I think that I’m applying the law of associativity incorrectly, I don’t know how to use it when it has it. Any help on this would be greatly appreciated. You are welcome:)
source
share