• edited by
15,938 views
50 50 votes

Let $R_{1}$ be a relation from $A = \left \{ 1,3,5,7 \right \}$ to $B = \left \{ 2,4,6,8 \right \}$ and $R_{2}$ be another relation from $B$ to $C = \{1, 2, 3, 4\}$ as defined below:

  1. An element $x$ in $A$ is related to an element $y$ in $B$ (under $R_{1}$) if $x + y$ is divisible by $3.$
  2. An element $x$ in $B$ is related to an element $y$ in $C$ (under $R_{2}$) if $x + y$ is even but not divisible by $3.$

Which is the composite relation $R_{1}R_{2}$ from $A$ to $C$?

  1. $R_{1}R_{2}  =  \{(1, 2), (1, 4), (3, 3), (5, 4), (7, 3)\} $
  2. $R_{1}R_{2} =  \{(1, 2), (1, 3), (3, 2), (5, 2), (7, 3)\} $
  3. $R_{1}R_{2} =  \{(1, 2), (3, 2), (3, 4), (5, 4), (7, 2)\} $
  4. $R_{1}R_{2}  =  \{(3, 2), (3, 4), (5, 1), (5, 3), (7, 1)\} $

4 Answers

Best answer
40 40 votes

The answer is $C$.

Explanation:

  • $R_1=\{(1,2),(1,8),(3,6),(5,4),(7,2),(7,8)\}$
  • $R_2=\{(2,2),(4,4),(6,2),(6,4),(8,2)\}$

So, $R_1R_2=\{(1,2),(3,2),(3,4),(5,4),(7,2)\}$

• edited by
6 6 votes

R1 is a relation from A = {1, 3, 5, 7} to B = {2, 4, 6, 8} . Under R1, an element x in A is related to an element y in B if x + y is divisible by 3. 
Thus, R1 = {(1, 2), (1, 8), (3, 6), (5, 4), (7, 2), (7, 8)} 
R2 is a relation from B = {2, 4, 6, 8} to C = {1, 2, 3, 4} Under R2, an element y in B is related to an element z in C if y + z is even but not divisible by 3. 
Thus, R2 = {(2, 2), (4, 4), (6, 2), (6, 4), (8, 2)} 
it 
Thus, R1R2 = {(1, 2), (3, 2), (3, 4), (5, 4), (7, 2)} 
 
Thus, option (C) is correct. 

6 6 votes

R1 = {(1, 2), (1, 8), (3, 6), (5, 4), (7, 2), (7, 8)} 

R2 = {(2, 2), (4, 4), (6, 2), (6, 4), (8, 2)} 

 

To find the composite relation R1R2 from A to C, we just need to find all ordered pairs (x, z) where there exists an element y such that (x, y) ∈ R1 and (y, z) ∈ R2.

Therefore

R1R2 = {(1, 2), (3, 2), (3, 4), (5, 4), (7, 2)}

=====================

 

Hope my answer helps everyone here 

 

• edited by
3 3 votes

Analysis

 

Step 1: Find all pairs in R₁ R₁ connects A = {1, 3, 5, 7} to B = {2, 4, 6, 8} if x + y is divisible by 3.

  • 1+2=3 → (1, 2)

  • 1+8=9 → (1, 8)

  • 3+6=9 → (3, 6)

  • 5+4=9 → (5, 4)

  • 7+2=9 → (7, 2)

  • 7+8=15 → (7, 8) So, R₁ = {(1, 2), (1, 8), (3, 6), (5, 4), (7, 2), (7, 8)}.


Step 2: Find all pairs in R₂ R₂ connects B = {2, 4, 6, 8} to C = {1, 2, 3, 4} if x + y is even but not divisible by 3. (Hint: For the sum to be even, an even number from B must be added to an even number from C).

  • 2+2=4 (even, not div by 3) → (2, 2)

  • 4+4=8 (even, not div by 3) → (4, 4)

  • 6+2=8 (even, not div by 3) → (6, 2)

  • 6+4=10 (even, not div by 3) → (6, 4)

  • 8+2=10 (even, not div by 3) → (8, 2) So, R₂ = {(2, 2), (4, 4), (6, 2), (6, 4), (8, 2)}.


Step 3: Find the "Chains" to build R₁R₂ Now we look for (a, b) in R₁ and (b, c) in R₂ to form (a, c).

  • (1, 2) ∈ R₁ and (2, 2) ∈ R₂ → (1, 2) is in the result.

  • (1, 8) ∈ R₁ and (8, 2) ∈ R₂ → (1, 2) is in the result (again).

  • (3, 6) ∈ R₁ and (6, 2) ∈ R₂ → (3, 2) is in the result.

  • (3, 6) ∈ R₁ and (6, 4) ∈ R₂ → (3, 4) is in the result.

  • (5, 4) ∈ R₁ and (4, 4) ∈ R₂ → (5, 4) is in the result.

  • (7, 2) ∈ R₁ and (2, 2) ∈ R₂ → (7, 2) is in the result.

  • (7, 8) ∈ R₁ and (8, 2) ∈ R₂ → (7, 2) is in the result (again).


Final Result 

Combining all the unique pairs, we get: R₁R₂ = {(1, 2), (3, 2), (3, 4), (5, 4), (7, 2)} This matches Option C.

Answer:
Position:
Show:

Related questions

26 26 votes
3 answers 3 answers
8.5k
8.5k views
Ishrat Jahan asked Nov 1, 2014
8,476 views
In a class of $200$ students, $125$ students have taken Programming Language course, $85$ students have taken Data Structures course, $65$ students have taken Computer Or...
3 3 votes
1 answers 1 answer
3.9k
3.9k views
Ishrat Jahan asked Nov 2, 2014
3,915 views
Given below are several usages of the anchor tag in HTML.<A HREF = "http://www.gate.ac.in/HTML/BASIC/testpage.html">Test Me</A><A HREF = "/BASIC/testpage.html">Test Me</A...
1 1 vote
1 1 answer
2.7k
2.7k views
Ishrat Jahan asked Nov 2, 2014
2,661 views
Consider an XML file called intro.xml and a document type defintion (DTD) file intro.dtd as follows:intro.xml<?xml version = "1.0"? <!DOCTYPE myMessage SYSTEM "intro.dtd"...
87 87 votes
15 answers 15 answers
42.0k
42.0k views
Ishrat Jahan asked Nov 2, 2014
42,024 views
Suppose that the maximum transmit window size for a TCP connection is $12000$ $\text{bytes}$. Each packet consists of $2000$ $\text{bytes}$. At some point in time, the co...