• retagged by
2,390 views
5 5 votes
Assume $R_1$, $R_2$, and $R_3$ are three regular expressions.

Given $R_1 + R_2 \cdot R_3 = (R_1+R_2) \cdot (R_1+R_3)$ for any $R_2$ and $R_3$. Which of the following could be correct condition which always satisfies the above equation.

1. $R_1 = R_2$

2. $R_1 = R_3$

3. $R_1 = \emptyset$

A) only 1 and 2 are correct

B) only 1 and 3 are correct

C) only 2 and 3 are correct

D) 1,2, and 3 are correct

Answer is given as D

2 Answers

Best answer
6 6 votes

Let us take cases one by one :

Case 1 :

LHS    =   R1 + R2.R3

          =   R1  + R1.R3

RHS   =   (R1 + R2) . (R1 + R3)

          =   R1.( R1 + R3)  [ As  R1 = R2 given ]

          =   R1 . R1  + R1 . R3  [ As follows from the distributive property ]

which is not equal to LHS as R1 . R1   !=  R1..Hence (i) is false..

Simlarly we can prove (ii) is also false..

For case (iii) , we have :

LHS   =  R1 + R2.R3

            =   Φ + R2.R3

            =   R2.R3  [ As R + Φ  = R like additive identity ]

RHS   =  (R1 + R2) . (R1 + R3)

         =  ( Φ + R2) . ( Φ + R3)

         =   R2.R3 [ As R + Φ  = R like additive identity ]

Hence only (iii) is true

So none of the options of the given question is true..

• selected by
5 5 votes

(R1+R2) (R1+R3) = R1R1 + R1R3 + R2R1 + R2R3

Now, R1 = R2 => LHS = R1 + R2R3 = R1 + R1R3
RHS = R1R1 + R1R3 + R1R1 + R1R1

So, they are not equal. For example consider R1 = R2 = a, R3 = b. LHS = a + ab, RHS = aa + ab

When R1 = R3, LHS = R1 + R2R1
RHS = R1R1 + R1R1 + R2R1 + R2R1, again not equal. For example, R1 = R3 = a, R2 = b, LHS = a + ba, RHS = aa + ba

When R1 = ϕ,

LHS = ϕ + R2.R3 = R2.R3
RHS = (ϕ + R2).(ϕ + R3) = R2.R3, hence equal.

Position:
Show:

Related questions

94 94 votes
5 answers 5 answers
26.2k
26.2k views
Kathleen asked Sep 12, 2014
26,219 views
Given below are two finite state automata ( $\rightarrow$ indicates the start state and $F$ indicates a final state)$$\overset{Y}{\begin{array}{|l|l|l|}\hline \text{} & ...
0 0 votes
1 1 answer
1.2k
1.2k views
0 0 votes
0 0 answers
340
340 views
thor asked Nov 21, 2016
340 views
3 3 votes
3 answers 3 answers
5.0k
5.0k views
ari asked Aug 17, 2015
4,966 views
Which of the following are not equivalent to expression $(a + b + c)^*$?(A) $(a^* + b^* + c^*)^*$(B) $\Bigl ( (ab)^* + c^* \Bigr )^*$(C) $(a^* b^* c^*)^*$(D) $(a^*b^* + c...