retagged by
1,619 views
0 votes
0 votes
Let ‘R’ be a regular expression, then which of the following statements is/are TRUE for every 'R'?

S1: There exists 'S' which satisfies property R + S = S.
S2: There exists 'S' which satisfies property R.S = S

 

A) only S1 is true

B) only S2 is true

C) Both are true

D) Both are false

 

Please answer this with a suitable explanation.
retagged by

1 Answer

1 votes
1 votes
S1: There exists 'S' which satisfies property R + S = S

Suppose R = anything and S = $(a+b)^{*}$, Then R+S = S

S2: There exists 'S' which satisfies property R.S = S

Suppose R = anything and S = $\varnothing$, Then R.S = S

So both S1 and S2 are true.

Related questions

2 votes
2 votes
2 answers
1
1 votes
1 votes
1 answer
2
prabhath challa asked 6 days ago
53 views
what will be the regular expression of this DFA using Arden's theorem
0 votes
0 votes
1 answer
4
hasina ali asked Mar 21
89 views
Set of binary strings starting with 11 and ending with 00. E.g., 1100,1110100 ,1100100