The following solutions make use of information found on pages 533 - 543 of the textbook.
Fill in the blanks to complete the following sentences.
You should attempt all these exercises yourself, using the textbook as an aid. Once you have attempted each question, check your answers by following the appropriate links. If you are stuck on a question, choose the link that gives you a hint and then try the question again.
1. Let A = {0, 2, 4} and B = {1, 2, 3, 4}.
a) The Cartesian product A × B consists of the ordered pairs (0, 1), (0, 2), (0, 3), (0, 4), (2, 1), (2, 2), (2, 3), (2, 4), (4, 1), (4, 2), (4, 3),
(4, 4).
b) Now for xA
and y
B (A and B as above) we say
that x is related to y, x R y, if, and only if, x
y.
0 R 2 since 0 2
2 R 4 since 2 4
2 R 3 since 2 3
2 R 2 since 2 2
4 not R 3 since 4 > 3
2. Let A = {1, 2, 3, 4, 5} and B = {0, 2, 4, 6, 8}. Suppose r is a relation from A to B which is defined as follows. Write down the elements of r.
( i ) x r y x
y.
( ii ) x r y x = y.
( iii ) x r y x - y is even.
( iv ) x r y x + y = 7.
3. Define three different relations from the set of integers Z to the set of natural numbers N. (There are many, many answers here, so be creative.)
4. Consider the following relations on Z:
( i ) R1 = { (a, b) | ab};
( ii ) R2 = { (a, b) | a > b};
( iii ) R3 = { (a, b) | a = b or a = -b};
( iv ) R4 = { (a, b) | a = b};
( v ) R5 = { (a, b) | a = b+1};
( vi ) R6 = { (a, b) | a + b3}.
Consider each of the following ordered pairs in turn and state to which of the six relations above the pair belongs: (1,1), (1,2), (2,1), (1,-1) and (2,2).
5. Let A = {1, 3, 5} and B = {1, 2, 3, 4}. Draw a directed bipartite graph to
illustrate the relation S from A to B where: (x, y)S
x + 1 > y.
6. Let A = {3, 6, 9} and B = {2, 4, 6, 8}. Let R = { (3,2), (6,2), (9,6), (6,8) } be a relation. Is R a function from A to B? Explain your answer.
7. Let A = {x, y, z} and B = {1, 4, 7, 10}. Suppose that R = { (x, 4), (x, 10), (z, 1), (y, 7), (y, 1) } is a relation from A to B. List the elements of R-1.
8. Let A = {1, 2, 3, ..., 10} and define a binary relation R on A as follows: " x, yA,
x R y
3 | (x - y).
a) Write down the elements of R.
b) Write down the elements of R-1. Is R = R-1?
The following solutions make use of information found on pages 546 - 553 of the textbook.
Fill in the blanks to complete the following sentences.
You should attempt all these exercises yourself, using the textbook as an aid. Once you have attempted each question, check your answers by following the appropriate links. If you are stuck on a question, choose the link that gives you a hint and then try the question again.
1. Consider the following relations on the set {1, 2, 3, 4}.
R1 = { (1,1), (1,2), (2,1), (2,2), (3,4), (4,1), (4,4) }
R2 = { (1,1), (1,2), (2,1), (2,2), (3,3), (4,4) }
R3 = { (1,1), (1,2), (1,4), (2,1), (2,2), (3,3), (4,1), (4,4)}
R4 = { (2,1), (3,1), (3,2), (4,1), (4,2), (4,3) }
R5 = { (1,1), (1,2), (1,3), (1,4), (2,2), (2,3), (2,4), (3,3), (3,4), (4,4)}
R6 = { (1,1), (2,2), (3,3), (4,4) }
For each of the relations R1, R2, R3, R4, R5 and R6, determine if the relation is reflexive, symmetric and/or transitive.
2. Is the "divides" relation R, where a R b a | b, on the set of positive
integers: i) reflexive? ii) symmetric?
iii) transitive?
3. Let A = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and define a relation R on A as
follows: " x, yA, x R y
3 | (x - y).
Draw the directed graph of R and use it to check whether R is reflexive, symmetric and/or
transitive. (Note that you have already written out the elements of this relation in
Section 10.1, Question 8 so use that to draw the graph.)
4. Define a relation s on R (the set of all
real numbers) as follows: for all x, yR, x s y
x > y.
a) Is s reflexive?
b) Is s symmetric?
c) Is s transitive?
Justify your answers.
5. Define a relation r on Z × (Z
\ {0}) as follows: for all (a, b), (c, d)Z × (Z \ {0}), (a,
b) r (c, d)
a/b = c/d.
a) Is r reflexive?
b) Is r symmetric?
c) Is r transitive?
6. Prove that if a relation R is reflexive then R-1 is also reflexive.
7. Prove that a relation R is symmetric if and only if R = R-1.
8. For the relation R, is the statement "If R is transitive then R-1 is
transitive'' true or false?
Justify your answer.
The following solutions make use of information found on pages 555 - 570 of the textbook.
Fill in the blanks to complete the following sentences.
You should attempt all these exercises yourself, using the textbook as an aid. Once you have attempted each question, check your answers by following the appropriate links. If you are stuck on a question, choose the link that gives you a hint and then try the question again.
1. Let A = {1, 3, 5, 7, 9, 11, 13} and consider the following partition of A: {1, 5,
9}, {3, 7, 13}, {11}.
List the elements of the relation R induced by this partition.
Hint
Full solution
2. Let A = {0, 1, 2, 3, 4} and define a relation R on A as follows:
R = { (0, 0), (2, 1), (0, 3), (1, 1), (3, 0), (1, 4), (4, 1), (2, 2), (2, 4), (3, 3), (4,
4), (1, 2), (4, 2) }.
a) Draw the directed graph for R.
b) Use the directed graph for R to check whether R is an equivalence relation.
c) If R is an equivalence relation, use the graph to list the partition of the set A which induces the relation R and to list the equivalence classes of R.
3. Which of the relations in Section 10.2, Question 1 are equivalence relations? For each relation which is an equivalence relation, draw the directed graph and then use the graph to list the partition of the set {1, 2, 3, 4} which induces the relation and to list the equivalence classes for that relation.
4. Define the relation r on the set of integers Z
as follows: for all m and n in Z, m r n 7 | (m - n).
a) Prove that r is an equivalence relation.
b) Find the equivalence classes for r.
c) Refer to the equivalence classes from part b) to determine which of the following
statements are correct? Explain your answers.
( i ) [1] = [-8]; ( ii ) [1] = [8]; ( iii
) [123] = [319]; ( iv ) [304] = [10]; ( v )
[-34] = [-6].
Hint
Full solution
5. Let
A0 = { ..., -10, -5, 0, 5, 10, 15, 20, 25, ...};
A1 = { ..., -9, -4, 1, 6, 11, 16, 21, 26, ...};
A2 = { ..., -8, -3, 2, 7, 12, 17, 22, 27, ...};
A3 = { ..., -7, -2, 3, 8, 13, 18, 23, 28, ...};
A4 = { ..., -6, -1, 4, 9, 14, 19, 24, 29, ...}.
a) Prove that A0, A1, A2, A3 and A4 partition the set of integers Z.
b) Find the relation s induced by this partition.
6. Let d be a positive integer. Define the relation d on the
set of integers Z as follows: for all m and n in Z
m d n
m
n (mod d). (Recall that m
n (mod d) if and only if d |
(m - n).)
a) Prove that d is an equivalence relation.
b) List the equivalence classes for d.
The following solutions make use of information found on pages 585 - 588 and 592 of the textbook.
Fill in the blanks to complete the following sentences.
You should attempt all these exercises yourself, using the textbook as an aid. Once you have attempted each question, check your answers by following the appropriate links. If you are stuck on a question, choose the link that gives you a hint and then try the question again.
1. For each of the following relations on the set A = {1, 2, 3, 4}, decide whether it is antisymmetric. Justify your answers using the directed graph for each relation.
a) R1 = { (1, 1), (2, 2), (2, 3), (2, 4), (4, 4), (3, 3), (3, 4) }
b) R2 = { (1, 2), (2, 3), (3, 4) }
c) R3 = { (1, 3), (1, 4), (2, 3), (2, 4), (3, 1), (3, 4) }
2. Determine whether the relation R on the set of all people is reflexive,
antisymmetric, and/or transitive, where for any two people a and b (a, b)R if and only if :
a) a is taller than b.
b) a and b were born on the same day.
3. For each of the following relations, determine if the relation is reflexive, symmetric, antisymmetric and/or transitive. Then classify the relation as a partial order relation, an equivalence relation or neither.
a) (x, y)R if, and only if,
xy
1 where x and y are
integers.
b) (x, y)R if, and only if, x is
a multiple of y where x and y are positive integers.
c) (x, y)R if, and only if, x
y (mod 13) where x and y are
integers.
4. a) List all the 16 relations on the set {0, 1}. Hint: A relation on the set {0, 1} is a subset of {0, 1}×{0, 1} = { (0, 0), (0, 1), (1, 0), (1, 1) }.
b) Which of the 16 relations on {0, 1}, which you listed in part a), are partial order relations?
5. Let A = {1, 2, 3, 4} and define the relation r on the
power set of A, P(A), as follows: for X, YP(A),
X r Y X
Ì Y or X = Y.
Show that r is a partial order relation.
6. The partial order relation R is described by the following directed graph.
Is R a total order relation on {a, b, c, d, e}? Justify your answer.
7. a) Is the relation r defined in Question 5 a total order relation on the set A = {1, 2, 3, 4}?
b) What if r were defined in the same way on P(B) where B = {1}?