MCS-212 · Block 2 Unit 1

Sets, Relations and Functions

Section 6 of 9

Block 2 · Unit 1Sets, Relations and Functions7 min · Section 6 of 9

1.6Properties of relations and equivalence relations

Covers IGNOU MCS-212 §1.4.3, E21

Some relations behave especially well. “Is equal to”, “has the same remainder mod 3” and “is parallel to” share three properties that make them act like a kind of equality. Recognising these properties is essential for databases (keys), compilers (type equivalence) and graph algorithms.

PropertyTest on the matrixTest on the digraphTo show it FAILS, give
Reflexiveevery diagonal entry is 1a loop at every vertexone aa with (a,a)∉R(a, a) \notin R
SymmetricMRM_R equals its transposeevery arrow has a reverse arrowone (a,b)∈R(a, b) \in R with (b,a)∉R(b, a) \notin R
Transitive(check all paths)every two-step path a→b→ca \to b \to c has a shortcut a→ca \to cone (a,b),(b,c)∈R(a, b), (b, c) \in R with (a,c)∉R(a, c) \notin R

Examples

RelationSetReflexiveSymmetricTransitive
a=ba = bany setyesyesyes
a≤ba \leq bR\mathbb{R}yesno (2≤32 \leq 3, 3≰23 \not\leq 2)yes
a<ba < bR\mathbb{R}nonoyes
line aa is parallel to line bb (a line counts as parallel to itself)lines in a planeyesyesyes
line aa meets line bb (not parallel)lines in a plane—yesno
aa divides bbN\mathbb{N}yesnoyes

Equivalence relations

The equivalence classes of an equivalence relation split AA into non-empty, non-overlapping pieces that together cover AA (a partition). For example, "a≡b(mod3)a \equiv b \pmod 3" (3 divides a−ba - b) on Z\mathbb{Z} has three classes: [0]={…,−3,0,3,6,… }[0] = \{\dots, -3, 0, 3, 6, \dots\}, [1]={…,−2,1,4,… }[1] = \{\dots, -2, 1, 4, \dots\} and [2]={…,−1,2,5,… }[2] = \{\dots, -1, 2, 5, \dots\}.

Key takeaways

  • Reflexive: every (a,a)(a, a); symmetric: every pair has its reverse; transitive: every two-step path has a shortcut.
  • One counterexample is enough to show a property fails.
  • Equivalence relation = reflexive + symmetric + transitive.
  • Equivalence classes partition the set (e.g. remainders mod 3).

Practice questions

Answer on paper first, then check. The explanation matters more than the letter you chose.

Question 1 · multiple choice

On A={1,2,3}A = \{1, 2, 3\}, which relation is reflexive?

Show answer

Answer: B. {(1,1),(2,2),(3,3),(1,3)}\{(1,1), (2,2), (3,3), (1,3)\}

All of (1,1),(2,2),(3,3)(1,1), (2,2), (3,3) are present. Option 1 misses (3,3)(3,3).

Question 2 · multiple choice

Which property does ≤\leq on R\mathbb{R} NOT have?

Show answer

Answer: C. Symmetric

2≤32 \leq 3 but 3≰23 \not\leq 2. Option 4 is wrong, so ≤\leq is not an equivalence relation.

Question 3 · multiple choice

The relation R={(1,2),(2,3)}R = \{(1,2), (2,3)\} on {1,2,3}\{1, 2, 3\} is not transitive. Which pair must be added to fix this?

Show answer

Answer: A. (1,3)(1, 3)

(1,2)(1,2) and (2,3)(2,3) require (1,3)(1,3). Option 2 is the reverse direction; transitivity needs (a,c)(a, c), not (c,a)(c, a).

Question 4 · multiple choice

How many equivalence classes does “congruence modulo 5” have on Z\mathbb{Z}?

Show answer

Answer: D. 5

The classes are the possible remainders 0,1,2,3,40, 1, 2, 3, 4. Option 2 is tempting because each class is infinite, but the number of classes is 5.

Question 5 · multiple choice

A relation’s matrix equals its transpose. Which property does the relation have?

Show answer

Answer: B. Symmetric

mij=mjim_{ij} = m_{ji} means (ai,aj)∈R(a_i, a_j) \in R exactly when (aj,ai)∈R(a_j, a_i) \in R. A symmetric matrix says nothing about the diagonal, so it need not be reflexive.

Question 6 · short answer

On Z\mathbb{Z} define aRba \mathrel{R} b if a+ba + b is even. Is RR an equivalence relation? Give its classes.

Show worked answer

Reflexive: a+a=2aa + a = 2a is even. Symmetric: a+b=b+aa + b = b + a. Transitive: if a+ba + b and b+cb + c are even, then a+c=(a+b)+(b+c)−2ba + c = (a + b) + (b + c) - 2b is even. So RR is an equivalence relation. a+ba + b is even exactly when aa and bb have the same parity, so the classes are [0][0] = the even integers and [1][1] = the odd integers.

↑ ↓ move↵ openTab switch type