20,830 views

2 Answers

Best answer
12 votes
12 votes

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)]$.

selected by
0 votes
0 votes

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

Related questions

0 votes
0 votes
1 answer
3
Garrett McClure asked Sep 14, 2017
728 views
For each regular expression, give two strings that are in the corresponding language and two strings that are not.1. (a + b)∗ab(a + b)∗2. b∗ab∗ab∗3. a + (a∗b)...
0 votes
0 votes
0 answers
4