retagged by
285 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

312
views
1 answers
0 votes
Bikram asked Aug 12, 2017
312 views
What is the regular expression corresponding to the above DFA?$(01 + (00)^*1)^*$0^*10^*$(10 + 0(00)^* (1 + 01) )^*$0(00)^*10^*$
398
views
1 answers
1 votes
Bikram asked Aug 12, 2017
398 views
Which of the following is correct?$(01 )^* \cap (10)^* = \not{0}$(x + y + z)^* = x^*y^*z^* + x^*y^* + z^* + z^*x^*y^*$(p + q )^* p + ( p+q)^* q + \epsilon = (p^* q^*)^*$(m + n)^* \cap (m + n)^* mn \neq (m + n)^* mn$
332
views
1 answers
1 votes
Bikram asked Aug 12, 2017
332 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) ^* (00 ^* 1 + 10) (0 + 1) ^*$
295
views
1 answers
0 votes
Bikram asked Aug 12, 2017
295 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)^*$100 ( ((0+1)^* 0^* )^* 100)^*$