edited by
564 views
2 votes
2 votes
The meaning of the regular expression (a+b)(a+b) is

A)Strings of a's and b's where length is 2

B)Strings of a's and b's of any length.

C)Null string

D)None
edited by

1 Answer

Best answer
7 votes
7 votes

A)Strings of a's and b's where length is 2  $\Rightarrow$ (a+b) (a+b)

B)Strings of a's and b's of any length     $\Rightarrow$  (a+b)≡ (a*+b)* ≡ (a+b*)*≡ (a*+b*)*

C)Null String $\Rightarrow$ {∈}

Hence,Option(A)Strings of a's and b's where length is 2 is the correct choice.

edited by

Related questions

1 votes
1 votes
1 answer
4