DIZNR INTERNATIONAL

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.

https://www.gyanodhan.com/video/7B5.%20GATE%20CSEIT/Discrete%20Mathematics%202/514.%20Day%2002%20%20%20Part%2010%20-%20Discrete%20mathematics%20for%20computer%20science%20-%20Equivalence%20relation%20and%20it%27s%20use.mp4

Equivalence Relation in Discrete Mathematics

An equivalence relation is a relation that satisfies three key properties:

  1. Reflexivity: aRaaRa for all aa in set AA.
  2. Symmetry: If aRbaRb, then bRabRa.
  3. 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

  1. Partitioning a Set – Equivalence relations divide a set into disjoint equivalence classes.
  2. Modular Arithmetic – Used in cryptography and computer science.
  3. Graph Theory – Helps in clustering similar nodes.
  4. 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:

  1. Reflexive – Every element is related to itself.

    (a, a) ∈ R for all a ∈ A

  2. Symmetric – If a is related to b, then b is related to a.

    (a, b) ∈ R ⇒ (b, a) ∈ R

  3. 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) }

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:


Real-life Analogy:


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:


Would you like:

Let me know! I’m here to help you master this topic

Part 10 – Discrete mathematics for computer science – Equivalence relation and it’s use.

Discrete Mathematics – (Relations)