retagged by
251 views
0 votes
0 votes

Which of the following pairs of regular expressions define the same language $\{a, b\}$?

  1. $(a^*+ b^*) ^*$  and  $(a+ b)^*$
  2. $(a^* b )^* a^*$ and  $a(ba^* )^*$
  3. $(a^*+ b)^*$ and $(a+ b)^*$
  4. $(a b)^* a$  and  $a (ba)^*$
  1. $a, b$, and $d$
  2. $a, c$, and $d$
  3. $b,c,d$
  4. $a,b,c$ and $d$
retagged by

1 Answer

Best answer
1 votes
1 votes

1) True, (a + b)* = Language contain all the string over the alphabet {a, b}.
(a* + b*)* = Language contain all the string over the alphabet {a, b}.

2) False. 
LHS = (a* b)* a*. Here a string can start either with a or b.
RHS = a(ba*). Here all the strings are starting with a.

3) True.
As LHS and RHS both contain all the string over the alphabet {a, b}.

4) True.
LHS = (ab)*a = abababab.....aba

$\Rightarrow$ a(ba)(ba)(ba).....(ba)(ba) = a(ba)* = RHS

Ans: Option B.

selected by
Answer:

Related questions

0 votes
0 votes
1 answer
1
Bikram asked Aug 12, 2017
285 views
What is the regular expression corresponding to the above DFA?$(01 + (00)^*1)^*$$0^*10^*$$(10 + 0(00)^* (1 + 01) )^*$$0(00)^*10^*$
1 votes
1 votes
1 answer
2
1 votes
1 votes
1 answer
3
Bikram asked Aug 12, 2017
302 views
Choose the regular expression corresponding to the given DFA :$(00 ^*1 + 11^* 0) (0 + 1) ^*$$((11) ^* 0 + 00 ^* 1)(0 + 1) ^*$$(11) ^* (0 ^* 1 + 1^* 0) (0 + 1) ^*$$(11) ^*...
0 votes
0 votes
1 answer
4
Bikram asked Aug 12, 2017
274 views
Which of the following Regular Expression is NOT the same as the other three?$100 ( ( (00)^* (10)^* )^* 100)^*$$100 ( ( ( 0+1) 0)^* 100 )^*$$100 ( (00 + 10)^* 100)^*$$10...