Practice Questions Relations
Practice Questions Relations
List the ordered pairs in the relation R from A = {0, 1, 2, 3, 4} to B = {0, 1, 2, 3}, where (a, b) ∈
R if and only if
a) a = b.
b) a + b = 4.
c) a > b.
d) a | b.
e) gcd(a, b) = 1.
f ) lcm(a, b) = 2.
For each of these relations on the set {1, 2, 3, 4}, decide whether it is reflexive, whether it is
irreflexive, whether it is symmetric, whether it is antisymmetric, whether it is asymmetric, and
whether it is transitive.
a) {(2, 2), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4)}
b) {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
f ) {(1, 3), (1, 4), (2, 3), (2, 4), (3, 1), (3, 4)}
Determine whether the relation R on the set of all integers is reflexive, symmetric,
antisymmetric, and/or transitive, where (x, y) ∈ R if and only if
a) x ≠ y.
b) xy ≥ 1.
c) x = y + 1 or x = y − 1.
1
d) x ≡ y (mod 7).
Page
Topic: Relations
Discrete Structures Practice Questions
e) x is a multiple of y.
g) x = y2.
h) x ≥ y2.
How many different relations are there from a set with m elements to a set with n elements?
Find a) R −1.
�
b) ���� .
Suppose that the function ���� from A to B is a one-to-one correspondence. Let R be the
relation that equals the graph of f . That is, R = {(a, f (a)) | a ∈ A}. What is the inverse relation
R−1?
Topic: Relations
Discrete Structures Practice Questions
Find
a) R2 ∪ R4.
b) R3 ∪ R6.
c) R3 ∩ R6.
d) R4 ∩ R6.
e) R3 − R6.
f ) R6 − R3.
g) R2 ⊕ R6.
h) R3 ⊕ R5.
How many relations are there on the set {a, b, c, d} that contain the pair (a, a)?
Topic: Relations
Discrete Structures Practice Questions
Represent each of these relations on {1, 2, 3} with a matrix (with the elements of this set listed
in increasing order).
c) {(1, 1), (1, 2), (1, 3), (2, 2), (2, 3), (3, 3)}
List the ordered pairs in the relations on {1, 2, 3} corresponding to these matrices (where the
rows and columns correspond to the integers listed in increasing order).
How can the matrix representing a relation R on a set A be used to determine whether the
relation is irreflexive?
Determine whether the relations represented by the following matrices are reflexive,
irreflexive, symmetric, antisymmetric, and/or transitive.
4
Page
Topic: Relations
Discrete Structures Practice Questions
How many nonzero entries does the matrix representing the relation R on A = {1, 2, 3, . . . , 100}
consisting of the first 100 positive integers have if R is
b) {(a, b) | a ≠ b}?
c) {(a, b) | a = b + 1}?
d) {(a, b) | a = 1}?
e) {(a, b) | ab = 1}?
�
How can the matrix for ���� , the complement of the relation R, be found from
the matrix representing R, when R is a relation on a finite set A?
Topic: Relations
Discrete Structures Practice Questions
List the ordered pairs in the relations represented by the directed graphs.
Determine whether the relations represented by the above directed graphs are
reflexive, irreflexive, symmetric, antisymmetric, and/or transitive.
Let R be a relation on a set A. Explain how to use the directed graph representing R to obtain
the directed graph representing the inverse relation R−1.
6
Page
Topic: Relations
Discrete Structures Practice Questions
Let R be a relation on a set A. Explain how to use the directed graph representing R to obtain
�
the directed graph representing the compliment relation ���� .
Which of these relations on {0, 1, 2, 3} are equivalence relations? Determine the properties of
an equivalence relation that the others lack.
b) {(0, 0), (0, 2), (2, 0), (2, 2), (2, 3), (3, 2), (3, 3)}
c) {(0, 0), (1, 1), (1, 2), (2, 1), (2, 2), (3, 3)}
d) {(0, 0), (1, 1), (1, 3), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)}
e) {(0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0), (2, 2), (3, 3)}
Which of these relations on the set of all people are equivalence relations? Determine the
properties of an equivalence relation that the others lack.
Show that the relation R consisting of all pairs (x, y) such that x and y are bit strings that agree
in their first and third bits is an equivalence relation on the set of all bit strings of length three
or more.
Let R be the relation on the set of ordered pairs of positive integers such that ((a, b), (c, d)) ∈ R
if and only if a + d = b + c. Show that R is an equivalence relation.
7
Page
Topic: Relations
Discrete Structures Practice Questions
What is the congruence class [n]5 (that is, the equivalence class of n with respect to congruence
modulo 5) when n is
a) 2? b) 3? c) 6? d) −3?
a) {1, 2}, {2, 3, 4}, {4, 5, 6} b) {1}, {2, 3, 6}, {4}, {5}
Let R be the relation {(a, b) | a ≠ b} on the set of integers. What is the reflexive closure of R?
Let R be the relation {(a, b) | a divides b} on the set of integers. What is the symmetric closure
of R?
How can the directed graph representing the reflexive closure of a relation on a finite set be
constructed from the directed graph of the relation?
How can the directed graph representing the symmetric closure of a relation on a finite set be
constructed from the directed graph for this relation?
Let R be the relation on the set {1, 2, 3, 4, 5} containing the ordered pairs (1, 3), (2, 4), (3, 1),
(3, 5), (4, 3), (5, 1), (5, 2), and (5, 4). Find
a) R2 b) R3 c) R4
d) R5 e) R6 f ) R∗
The following relation on the set {1, 2, 3, 4} is not transitive. Find its transitive closure. 8
Page
R = {(1, 3), (1, 4), (2, 1), (3, 2)}
Topic: Relations