Let R
1 be a relation from A = {1, 3, 5, 7} to B = {2, 4, 6, 8} and R
2 be another relation from B to C = {1, 2, 3, 4} as defined below:
- An element x in A is related to an element y in B (under R1) if x + y is divisible by 3.
- An element x in B is related to an element y in C (under R2) if x + y is even but not divisible by 3.
Which is the composite relation R
1R
2 from A to C?
(A)
R1R2 = {(1, 2), (1, 4), (3, 3), (5, 4), (7, 3)}
(B)
R1R2 = {(1, 2), (1, 3), (3, 2), (5, 2), (7, 3)}
(C)
R1R2 = {(1, 2), (3, 2), (3, 4), (5, 4), (7, 2)}
(D)
R1R2 = {(3, 2), (3, 4), (5, 1), (5, 3), (7, 1)}
Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!