UcenlyOpen in the app

Discrete Mathematics and Graphs · BE5B01DMG · Topic 4 of 12

Relations, equivalence and partitions

A relation is a subset of a Cartesian product; equivalence packages elements into disjoint classes.

Open the interactive lesson

Key ideas

Test each axiom

Reflexive means xRx for every x. Symmetric means xRy implies yRx; transitive joins xRy and yRz. Use universal statements, not a few examples.

Classes

For an equivalence relation, [x] contains exactly the elements equivalent to x. Two classes are either equal or disjoint.

Fibres of a map

The relation x∼y iff f(x)=f(y) is reflexive, symmetric and transitive by equality of outputs. Its classes are nonempty fibres.

Partitions

A partition consists of nonempty, pairwise disjoint subsets whose union is the whole set. For a surjection f:A→B, all fibres indexed by b∈B are nonempty.

In one line: To prove a partition, verify nonemptiness, disjointness and coverage.

Formulas

Practice with worked solutions

Question 1

How many ordered pairs belong to the relation ≤ on {1,2,3,4}?

Worked solution

Answer: 10

  1. Forx=1,2,3,4county≥x:4+3+2+1.For x=1,2,3,4 count y≥x: 4+3+2+1.
  2. Thetotalis10.The total is 10.

The four rows have 4, 3, 2 and 1 admissible partners.

Question 2

For f(x)=x mod 3 on {0,…,11}, how many equivalence classes does f(x)=f(y) produce?

Worked solution

Answer: 3

  1. Theimageis0,1,2.The image is {0,1,2}.
  2. Eachimagevaluegivesoneclass,hence3.Each image value gives one class, hence 3.

The three possible remainders are the three nonempty fibres.

Question 3

How many ordered pairs (x, y) with x, y ∈ {1,2,…,6} satisfy x | y?

Worked solution

Answer: 14

  1. x=1:6, x=2:3, x=3:2, x=4,5,6:1 eachx=1:6,\ x=2:3,\ x=3:2,\ x=4,5,6:1\text{ each}
  2. 6+3+2+1+1+1=146+3+2+1+1+1=14

For each x count the multiples of x that are at most 6 and add them up.

More Discrete Mathematics and Graphs practice in Ucenly

Sources

Written by Ucenly. Based on the BE5B01DMG course materials: