KonkurStudy
همه کارت‌ها

Equivalence Relations and Equivalence Classes

A reflexive, symmetric, transitive relation slices a set into disjoint equivalence classes that partition it; count the distinct classes, not the elements.

کارت مفهوم کنکور ارشد علوم کامپیوتر

اهمیت
۰/۵

An equivalence relation ∼\sim on a set AA is a relation that is

  • reflexive: a∼aa \sim a for all a∈Aa \in A,
  • symmetric: a∼b  ⟹  b∼aa \sim b \implies b \sim a,
  • transitive: a∼ba \sim b and b∼c  ⟹  a∼cb \sim c \implies a \sim c.

These three axioms are exactly what is needed to group elements into clusters of “the same kind.”

Equivalence classes

The equivalence class of aa is the set of everything related to it:

[a]={ x∈A:x∼a }.[a] = \{\, x \in A : x \sim a \,\}.

Any member of a class is a valid representative: a∼b  ⟺  [a]=[b]a \sim b \iff [a] = [b]. So [0][0], [3][3], [6][6] can all name the same class — listing them separately does not create new classes.

The partition theorem

The classes of an equivalence relation partition AA:

  1. every aa lies in some class (its own, by reflexivity), so the classes cover AA;
  2. two classes are either identical or disjoint — if they share even one element they are equal.

Conversely, every partition of AA comes from a unique equivalence relation (relate a∼ba \sim b iff they sit in the same block). “Equivalence relation” and “partition” are two views of the same object.

How to find the classes

When a∼ba \sim b means “f(a)=f(b)f(a) = f(b)” for some function ff (a very common konkur setup), the classes are exactly the fibers of ff — group together all inputs sharing the same output value. Then count the distinct output values: that count is the number of classes.

Mini-example

Define ∼\sim on Z6={0,1,2,3,4,5}\mathbb{Z}_6 = \{0,1,2,3,4,5\} by a∼b  ⟺  a≡b(mod3)a \sim b \iff a \equiv b \pmod 3 (same remainder mod 33). Tabulating a mod 3a \bmod 3:

aa 0 1 2 3 4 5
a mod 3a \bmod 3 0 1 2 0 1 2

Grouping equal values gives the classes

{0,3},{1,4},{2,5},\{0,3\},\quad \{1,4\},\quad \{2,5\},

so there are exactly 3 classes, and {0,3}∪{1,4}∪{2,5}=Z6\{0,3\}\cup\{1,4\}\cup\{2,5\} = \mathbb{Z}_6 — they partition the set.

Exam trick: the number of equivalence classes equals the number of distinct values, not the number of representatives a choice happens to list. A class written as [0]=[3]=[6][0]=[3]=[6] is one class shown three times; counting it three times (or trusting an option that pads the list with duplicate representatives) is the classic trap.

فرمول‌های کلیدی

Equivalence class
[a]={ x∈A:x∼a }[a] = \{\, x \in A : x \sim a \,\}

All elements related to a; any of them is a valid representative.

Class equality test
a∼b  ⟺  [a]=[b]a \sim b \iff [a] = [b]

Related elements name the same class, so [0], [3], [6] can be identical.

Partition property
A=⨆iCi,Ci∩Cj=∅ (i≠j)A = \bigsqcup_{i} C_i, \qquad C_i \cap C_j = \varnothing \ (i \neq j)

The distinct classes C_i are pairwise disjoint and cover all of A.

#equivalence-relation#equivalence-class#partition#reflexive-symmetric-transitive#modular-arithmetic

سوالات تمرینی