Part 10 – Discrete mathematics for computer science – Equivalence relation and it’s use.
Part 10 – Discrete mathematics for computer science – Equivalence relation and it’s use.
Contents [hide]
- 0.1 Equivalence Relation in Discrete Mathematics
- 0.2 Part 10 – Discrete mathematics for computer science – Equivalence relation and it’s use.
- 0.3 Notes on Discrete Mathematics
- 1
Part 10 – Discrete Mathematics for Computer Science
- 2
Equivalence Relation and Its Use
- 2.1
Definition:
- 2.2
Example:
- 2.3
Correct Example (Equivalence):
- 2.4
Real-life Analogy:
- 2.5
Use of Equivalence Relations in Computer Science:
- 2.6
Equivalence Classes:
- 2.7
Important Tips for Exams:
- 2.8 Part 10 – Discrete mathematics for computer science – Equivalence relation and it’s use.
- 2.9 Discrete Mathematics – (Relations)
- 2.1
Equivalence Relation in Discrete Mathematics
An equivalence relation is a relation that satisfies three key properties:
- Reflexivity: aRaaRa for all aa in set AA.
- Symmetry: If aRbaRb, then bRabRa.
- Transitivity: If aRbaRb and bRcbRc, then aRcaRc.
Example of Equivalence Relation
Consider a relation RR on a set of integers where aRbaRb if a≡bmod 3a \equiv b \mod 3. This means that two numbers are related if they have the same remainder when divided by 3.
Reflexive: a≡amod 3a \equiv a \mod 3 (always true)
Symmetric: If a≡bmod 3a \equiv b \mod 3, then b≡amod 3b \equiv a \mod 3
Transitive: If a≡bmod 3a \equiv b \mod 3 and b≡cmod 3b \equiv c \mod 3, then a≡cmod 3a \equiv c \mod 3
Use of Equivalence Relations
- Partitioning a Set – Equivalence relations divide a set into disjoint equivalence classes.
- Modular Arithmetic – Used in cryptography and computer science.
- Graph Theory – Helps in clustering similar nodes.
- State Reduction in Automata – Used in minimizing finite automata.
Would you like some practice problems or examples on equivalence relations?
Part 10 – Discrete mathematics for computer science – Equivalence relation and it’s use.
Notes on Discrete Mathematics
Here’s a detailed and easy-to-understand explanation of Equivalence Relation from Discrete Mathematics – Part 10, especially useful for Computer Science, Engineering, or GATE aspirants:
Part 10 – Discrete Mathematics for Computer Science
Equivalence Relation and Its Use
Definition:
A relation R on a set A is called an Equivalence Relation if it satisfies all three properties:
-
Reflexive – Every element is related to itself.
(a, a) ∈ R for all a ∈ A
-
Symmetric – If a is related to b, then b is related to a.
(a, b) ∈ R ⇒ (b, a) ∈ R
-
Transitive – If a is related to b and b to c, then a is related to c.
(a, b) ∈ R and (b, c) ∈ R ⇒ (a, c) ∈ R
Example:
Let A = {1, 2, 3, 4}
Define R on A as: R = { (1,1), (2,2), (3,3), (4,4), (1,2), (2,1) }
-
Reflexive?
All (a, a) are present
-
Symmetric?
(1,2) & (2,1) both present
-
Transitive?
No (1,2), (2,1) ⇒ (1,1) is there, but no (1,1), (1,2) ⇒ (2,2)? Not always
So, R is NOT an equivalence relation.
Correct Example (Equivalence):
Let A = {1, 2, 3}
Define R = { (1,1), (2,2), (3,3), (1,2), (2,1) }
Add (1,2), (2,3), (1,3), (3,1), (2,1), (3,2), etc.
If for all combinations:
-
Reflexive holds
-
Symmetric holds
-
Transitive holds
Then R is an equivalence relation.
Real-life Analogy:
-
“Is equal to” ( = ) is an equivalence relation
-
“Has same birthday as” – Reflexive (you share your own birthday), Symmetric (if A has B’s birthday, B has A’s), Transitive (if A and B, B and C → A and C)
Use of Equivalence Relations in Computer Science:
Application | How It’s Used |
---|---|
Partitioning Sets | Divide sets into equivalence classes |
State Minimization in Automata | Merge equivalent states |
Database Normalization | Identify duplicate or similar records |
Graph Theory | Identify components or symmetrical nodes |
Modular Arithmetic | Congruence relation mod n (a ≡ b mod n) |
Equivalence Classes:
If R is an equivalence relation on A and a ∈ A, then:
[a] = { x ∈ A | (a, x) ∈ R } is the equivalence class of a.
Example:
In mod 3:
A = {0, 1, 2, 3, 4, 5}
Then
[0] = {0, 3}
[1] = {1, 4}
[2] = {2, 5}
Important Tips for Exams:
-
Always check all three properties.
-
Know how to form equivalence classes.
-
Understand how equivalence partitions a set into disjoint subsets.
Would you like:
-
Practice problems with solutions?
-
Visual diagrams (like Venn or Hasse for equivalence classes)?
-
A PDF summary or worksheet?
Let me know! I’m here to help you master this topic