Which two of the following four regular expressions are equivalent? (ε is the empty string).
(A) (i) and (ii)
(B) (ii) and (iii)
(C) (i) and (iii)
(D) (iii) and (iv)
(00)*(ε+0) = (00)*.ε+ (00)*.0 = (00)* + (00)*0 = 0*
It is equal to (iii) [ using regular expression properties ].
we see that (00)* generates strings of even length and (00)*0 generated the strings of odd length.
Option (C) is correct.
Quiz of this Question