0% found this document useful (0 votes)
20 views5 pages

Relations in Discrete Math Tutorial

The document is a tutorial on relations in discrete mathematics and linear programming, covering various types of relations with examples and properties such as reflexivity, symmetry, antisymmetry, and transitivity. It includes specific ordered pairs for different relations, graphical representations, and exercises to determine the characteristics of these relations. Additionally, it discusses the composition of relations and provides problems related to real numbers and integers.

Uploaded by

ibrahemashhab
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views5 pages

Relations in Discrete Math Tutorial

The document is a tutorial on relations in discrete mathematics and linear programming, covering various types of relations with examples and properties such as reflexivity, symmetry, antisymmetry, and transitivity. It includes specific ordered pairs for different relations, graphical representations, and exercises to determine the characteristics of these relations. Additionally, it discusses the composition of relations and provides problems related to real numbers and integers.

Uploaded by

ibrahemashhab
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Discrete Math.

& Linear Programming BES 114


Tutorial #4
”Relations”

1. Let A = {0, 1, 2, 3, 4} and B = {0, 1, 2, 3}. The ordered pairs in the relation R are:

(a) a = b:
R = {(0, 0), (1, 1), (2, 2), (3, 3)}

(b) a + b = 4:
R = {(1, 3), (2, 2), (3, 1), (4, 0)}

(c) a > b:
R = {(1, 0), (2, 0), (2, 1), (3, 0), (3, 1), (3, 2), (4, 0), (4, 1), (4, 2), (4, 3)}

(d) a | b (i.e., a divides b):

R = {(1, 0), (1, 1), (1, 2), (1, 3), (2, 0), (2, 2), (3, 0), (3, 3), (4, 0)}

2. (a) List all the ordered pairs in the relation R = {(a, b) | a divides b} on the set {1, 2, 3, 4, 5, 6}:

R = {(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2, 2), (2, 4), (2, 6), (3, 3), (3, 6), (4, 4), (5, 5), (6, 6)}

(b) Display this relation graphically:

1 1

2 2

3 3

4 4

5 5

6 6
3. For each of these relations on the set {1, 2, 3, 4}, decide whether it is reflexive, symmetric, antisymmet-
ric, and transitive.
(a) {(2, 2), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4)}
• Reflexive: No (missing (1, 1) and (4, 4)).
• Symmetric: No (e.g., (2, 4) is present but (4, 2) is not present).
• Antisymmetric: No (e.g., (2, 3) and (3, 2) both exist).
• Transitive: Yes.
(b) {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
• Reflexive: Yes (all (1, 1), (2, 2), (3, 3), (4, 4) are present).
• Symmetric: Yes (for every (a, b), (b, a) is present).
• Antisymmetric: No (e.g., (1, 2) and (2, 1) both exist).
• Transitive: Yes (all required pairs for transitivity are present).
(c) {(2, 4), (4, 2)}
• Reflexive: No (missing (1, 1), (2, 2), (3, 3), (4, 4)).
• Symmetric: Yes (both (2, 4) and (4, 2) are present).
• Antisymmetric: No (both (2, 4) and (4, 2) exist).
• Transitive: No (e.g., (2, 4) and (4, 2) exist but (2, 2) is not present).
(d) {(1, 2), (2, 3), (3, 4)}
• Reflexive: No (missing (1, 1), (2, 2), (3, 3), (4, 4)).
• Symmetric: No (e.g., (1, 2) is present but (2, 1) is not).
• Antisymmetric: Yes (no (a, b) and (b, a) both exist unless a = b).
• Transitive: No (e.g., (1, 2) and (2, 3) exist but (1, 3) is not present).
(e) {(1, 1), (2, 2), (3, 3), (4, 4)}
• Reflexive: Yes (all (1, 1), (2, 2), (3, 3), (4, 4) are present).
• Symmetric: Yes (only pairs where a = b are present).
• Antisymmetric: Yes (no (a, b) and (b, a) both exist unless a = b).
• Transitive: Yes (all required pairs for transitivity are present).
(f) {(1, 3), (1, 4), (2, 3), (2, 4), (3, 1), (3, 4)}
• Reflexive: No (missing (1, 1), (2, 2), (3, 3), (4, 4)).
• Symmetric: No (e.g., (1, 3) is present but (3, 1) is also present, but not all pairs are symmetric).
• Antisymmetric: No (e.g., (1, 3) and (3, 1) both exist).
• Transitive: No (e.g., (1, 3) and (3, 4) exist but (1, 4) is not explicitly required for transitivity).
4. Determine whether the relation R on the set of all real numbers is reflexive, symmetric, antisym-
metric, and/or transitive,
(a) (x, y) → R if and only if x + y = 0.
Solution:
Let (a, a) → R =↑ a + a = 0 =↑ a = 0.
=↑ Not true for all a → R.
=↑ R is not reflexive.
Let (a, b) → R =↑ a + b = 0 =↑ b + a = 0.
=↑ (b, a) → R.
=↑ R is symmetric.
Let (a, b) → R and (b, c) → R =↑ a + b = 0 and b + c = 0.
=↑ a = ↓b and c = ↓b.
=↑ a + c = ↓2b ↔= 0 unless b = 0.
=↑ R is not transitive.
(b) (x, y) → R if and only if x = ±y.
Solution:

Let (a, a) → R =↑ a = ±a.


=↑ True, since a = a.
=↑ R is reflexive.
Let (a, b) → R =↑ a = ±b.
=↑ b = ±a, so (b, a) → R.
=↑ R is symmetric.
Let (a, b) → R and (b, c) → R =↑ a = ±b and b = ±c.
=↑ a = ±(±c) = ±c, so (a, c) → R.
=↑ R is transitive.

(c) (x, y) → R if and only if x = 2y.


Solution:

Let (a, a) → R =↑ a = 2a =↑ a = 0.
=↑ Not true for all a → R.
=↑ R is not reflexive.
Let (a, b) → R =↑ a = 2b ↔= b = 2a unless a = b = 0.
=↑ (b, a) → R only if a = b = 0.
=↑ R is not symmetric.
Let (a, b) → R and (b, c) → R =↑ a = 2b and b = 2c =↑ a = 4c.
=↑ (a, c) → R only if a = 2c (i.e., 4c = 2c =↑ c = 0).
=↑ Counterexample: (4, 2) → R and (2, 1) → R, but (4, 1) →
/ R.
=↑ R is not transitive.

(d) (x, y) → R if and only if xy = 0.


Solution:

Let (a, a) → R =↑ a2 = 0 =↑ a = 0.
=↑ Not true for all a → R.
=↑ R is not reflexive.
Let (a, b) → R =↑ ab = 0 =↑ ba = 0.
=↑ (b, a) → R.
=↑ R is symmetric.
Let (a, b) → R and (b, c) → R =↑ ab = 0 and bc = 0.
=↑ If b ↔= 0, then a = 0 and c = 0 =↑ (0, 0) → R.
=↑ If b = 0, then (a, c) → R only if ac = 0.
=↑ Counterexample: (1, 0) → R and (0, 1) → R, but (1, 1) →
/ R.
=↑ R is not transitive.

5. 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) x ↗ y (mod 7). (c) x and y are both negative or
both nonnegative.

6. Show that the relation R = ↘ on a nonempty set S is symmetric and transitive, but not reflexive.
7. Which relations in items 3 and 4 are irreflexive?
Remark. A relation R on the set A is irreflexive if for every a → A, (a, a) →
/ R. That is, R is
irreflexive if no element in A is related to itself.

8. Which relations in items 3 and 4 are asymmetric?


Remark. A relation R is called asymmetric if (a, b) → R implies that (b, a) →
/ R.

9. Let R be the relation R = {(a, b) | a < b} on the set of integers. Find:

(a) R→1 (b) R

Remark. Let R be a relation from a set A to a set B. The inverse relation from B to A, denoted
by R→1 , is the set of ordered pairs {(b, a) | (a, b) → R}. The complementary relation R is the set of
ordered pairs {(a, b) | (a, b) →
/ R}.

10. Let R1 = {(1, 2), (2, 3), (3, 4)} and R2 = {(1, 1), (1, 2), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3), (3, 4)} be
relations from {1, 2, 3} to {1, 2, 3, 4}. Find:

(a) R1 ≃ R2 (b) R1 ⇐ R2 (c) R1 ↓ R2 (d) R2 ↓ R1

11. Let R be the relation R = {(1, 2), (1, 3), (2, 3), (2, 4), (3, 1)}, and let S be the relation
S = {(2, 1), (3, 1), (3, 2), (4, 2)}. Find S ⇒ R.
Solution: We know that:

S ⇒ R = {(a, c) | ⇑b such that (a, b) → R and (b, c) → S}

(1, 2) → R ↑ (2, 1) → S ↑ (1, 1) → S ⇒ R.


(1, 3) → R ↑ (3, 1), (3, 2) → S ↑ (1, 1), (1, 2) → S ⇒ R.
(2, 3) → R ↑ (3, 1), (3, 2) → S ↑ (2, 1), (2, 2) → S ⇒ R.
(2, 4) → R ↑ (4, 2) → S ↑ (2, 2) → S ⇒ R.
(3, 1) → R ↑ (1, c) →
/ S ↑ No new pairs.

Therefore, the composition is:

S ⇒ R = {(1, 1), (1, 2), (2, 1), (2, 2)}

12. These relations on the set of real numbers:

R1 = {(a, b) → R2 | a > b}, the ”greater than” relation,


R2 = {(a, b) → R2 | a ⇓ b}, the ”greater than or equal to” relation,
R3 = {(a, b) → R2 | a < b}, the ”less than” relation,
R4 = {(a, b) → R2 | a ⇔ b}, the ”less than or equal to” relation,
R5 = {(a, b) → R2 | a = b}, the ”equal to” relation,
R6 = {(a, b) → R2 | a ↔= b}, the ”unequal to” relation.

Find
a) R1 ≃ R3 c) R2 ⇐ R4 e) R1 ↓ R2
b) R1 ≃ R5 d) R3 ⇐ R5 f) R2 ↓ R1

13. Let R1 and R2 be the “divides” and “is a multiple of” relations on the set of all positive integers,
respectively. That is,

R1 = {(a, b) | a divides b}, R2 = {(a, b) | a is a multiple of b}.

Find:

(a) R1 ≃ R2 (c) R1 ↓ R2 (e) R1 ↖ R2


(b) R1 ⇐ R2 (d) R2 ↓ R1

14. Let R be the relation on the set {1, 2, 3, 4, 5} containing the ordered pairs

(1, 1), (1, 2), (1, 3), (2, 3), (2, 4), (3, 1), (3, 4), (3, 5), (4, 2), (4, 5), (5, 1), (5, 2), (5, 4).

Find:

(a) R2 (b) R3 (c) R4 (d) R5

Common questions

Powered by AI

The relation R = {(x, y) | xy = 0} is symmetric because if xy = 0, then yx = 0, so (y, x) is also in R for any (x, y). However, the relation is not transitive because if (a, b) and (b, c) are in R, meaning ab = 0 and bc = 0, it does not necessarily follow that ac = 0, since b could be zero, making the relation fail to be transitive in general .

The less than relation R = {(x, y) | x < y} on real numbers is irreflexive, antisymmetric, and transitive. It's irreflexive because no real number x satisfies x < x. It's antisymmetric because if (x, y) is in R, then (y, x) cannot be, unless x = y, which is not possible under this relation. It is transitive because if x < y and y < z, then x < z, satisfying the transitive property .

The relation R = {(x, y) | x = ±y} is reflexive because for any real number a, a = a, satisfying x = ±x. It is transitive because if x = ±b and b = ±c, then x = ±(±c) = ±c, which makes the pair (x, c) valid under the relation definition. Overall, this relation is reflexive and transitive as it meets both conditions for any real numbers involved .

The relation R = {(a, b) | a < b} is antisymmetric. By definition, a relation is antisymmetric if (a, b) and (b, a) being both in the relation implies that a = b. However, for this relation, both (a, b) and (b, a) cannot coexist unless a = b, but since a < b, a cannot be equal to b, fulfilling the antisymmetry property naturally .

The composition of relations S ⇒R involves finding pairs (a, c) where there exists a b such that (a, b) is in R and (b, c) is in S. For this scenario, the pairs formed are: (1, 1) via paths (1, 2)→(2, 1) and (1, 3)→(3, 1), (1, 2) via (1, 3)→(3, 2), (2, 1) via (2, 3)→(3, 1), and (2, 2) via (2, 4)→(4, 2). Thus, the composition S ⇒R is {(1, 1), (1, 2), (2, 1), (2, 2)} .

The relation R = {(a, b) | a divides b} is reflexive because every number divides itself, so pairs like (1, 1), (2, 2), and (3, 3) exist. However, it is not symmetric; if a divides b, it doesn't necessarily mean b divides a unless a = b, thus lacking symmetry, though adequately reflexive .

R = {(1, 2), (2, 3), (3, 4)} is neither reflexive, symmetric, nor fully transitive, but it is antisymmetric as no inverse pairs exist unless equal. In contrast, R = {(1, 1), (2, 2), (3, 3), (4, 4)} is reflexive, symmetric, antisymmetric, and transitive, since it contains all identity pairs and these suffice for both symmetry and transitivity for the set considered .

This relation is reflexive because any integer x is either negative or nonnegative, so (x, x) satisfies the relation. It is transitive because if (x, y) and (y, z) are both in R, implying x and y and y and z are both either negative or nonnegative, x and z will also share the same sign property, hence (x, z) is in R. These ensure reflexivity and transitivity for the set of integers .

The relation R = {(a, b) | a = 2b} is not symmetric. For symmetry, if (a, b) is in R, then (b, a) must also be in R. If a = 2b, then b = a/2 is not equal to a = 2b unless a = b = 0. Therefore, (b, a) is not generally present, indicating the lack of symmetry .

The relation R = {(a, b) | a + b = 4} is not reflexive because not all elements in A satisfy the equation a + a = 4. It is neither symmetric nor antisymmetric because if (a, b) is in R, (b, a) is not necessarily in R, and (b, a) does not automatically imply a = b due to different combinations satisfying the sum equals 4 condition. The relation is not transitive because if (a, b) and (b, c) are both in R, it does not necessarily follow that (a, c) is in R as they're both tied to specific combinations of elements that sum to 4 .

You might also like