The correct answer would be C.
The regular expression can be categorized into two subparts. $R= L_1 + L_2 $ $L_1$ = The strings which begin with $00$ or $11$. $L_2$ = The strings which end with $00$ or $11$. Let us find out $L_1$ and $L_2$. $L_1$ = $(00 + 11)$ . (any number of 0's and 1's ) $L_1$ = $(00 + 11). {(0+1)}^{*}$ Similarly $L_2$ = (any number of 0's and 1's ) . $( 00 + 11)$ = ${(0+1)}^{*} (00 + 11) $ Hence R= $[(00+11) {(0+1)}^{*}] + [{( 0 + 1)}^{*} (00+11)]$.
Sir that will not accept strings like 00,11.
Ans C) [(00+11) (0+1)*] + [( 0 + 1)* (00+11)]
here either start with 00 or 11 , then minimum string will be 00 or 11
if end with 00 or 11 the also minimum string is 00 or 11
Here ⋋ also accepted, but that is not mentioned in any option
@Deep99 Option (d) is a regular expression which denotes a Language which accept all the string which begin "and " end with 00 and 11
64.3k questions
77.9k answers
244k comments
80.0k users