(b) Let A = {5, 6, 7, 8}, B = { 4, 6, 7} and the relations
R1 = {(a, b) | a эA, bэB and a > b}
R2 = {(a, b) | a э A, b э B and (a – b)2 <=6}
(i) Find the sets of ordered pairs in R1, R2 and give their cardinalities |R1|, |R2|. (2 marks)
(ii) Draw the directed graphs of R1, R2. (2 marks)
(iii) Give the Boolean-matrix representations of R1, R2. (2 marks)
(c) Explain what are Reflexive, Symmetric relations using examples. Each relation should contain at least three elements. (2 marks)
Solution.
Part b
i)
ii)
R1
R2
iii)
Part c
Reflexive: A relation R on a set A is called reflexive if (a, a) ∈ R for every element a ∈ A.
Each element is related to itself.
For a example, R = {(1, 1) (2, 2), (3, 3), (1, 2), (2, 1), (2, 3), (3, 2)}
Symmetric: A relation R on a set A is called symmetric if (b, a) ∈ R whenever (a,b) ∈ R, for all a, b ∈ A.
If any one element is related to any other element, then the second element is
related to the first.
For a example,
The relation R= {(x, y) ∈ R if and only if } on the set of all integers is symmetric because and
Comments