UcenlyOpen in the app

Discrete Mathematics and Graphs · BE5B01DMG · Topic 3 of 12

Sets, functions and cardinality

Translate membership into logic, then compare set sizes using functions and bijections.

Open the interactive lesson

Key ideas

Set operations

Intersection means both membership conditions; union means at least one. A power set contains subsets, including the empty set.

Map properties

A function assigns exactly one output to every input. Injective means no two inputs share an output; surjective means every codomain element is reached.

Images and preimages

For f(x)=x² from ℝ to [0,∞), f is onto but not one-to-one. The preimage of {4} is {−2,2}; this is a set, not an inverse function.

Finite and infinite size

A bijection establishes equal cardinality. ℕ, ℤ and ℚ are countably infinite; ℝ is uncountable. Cantor’s argument rules out a surjection from A onto its power set.

In one line: Check the domain and codomain before deciding whether a map is a bijection.

Formulas

Practice with worked solutions

Question 1

How many subsets does a five-element set have?

Worked solution

Answer: 32

  1. ∣P(A)∣=25=32|\mathcal P(A)|=2^5=32

Each element independently belongs or does not belong to a subset.

Question 2

How many reflexive binary relations are there on a 3-element set?

Worked solution

Answer: 64

  1. ∣A×A∣=9|A\times A|=9
  2. reflexive: 29−3=26=64\text{reflexive}:\ 2^{9-3}=2^6=64

A relation on A is a subset of A×A, which has 3·3=9 pairs. Reflexivity forces the 3 diagonal pairs (a,a) to be in, while the other 6 pairs are free, so 2⁶=64.

Question 3

On the power set of {1,2,3,4,5} let X∼Y mean that there is a bijection X→Y. How many elements does the largest equivalence class have?

Worked solution

Answer: 10

  1. [X]={S:∣S∣=∣X∣},#classes=6[X]=\{S:|S|=|X|\},\quad\#\text{classes}=6
  2. (50),…,(55)=1,5,10,10,5,1⇒max⁡=10\binom50,\dots,\binom55=1,5,10,10,5,1\Rightarrow\max=10

For finite sets a bijection exists exactly when the sizes agree, so the classes are “all k-element subsets”, k=0,…,5, of sizes C(5,k)=1,5,10,10,5,1. The largest classes (k=2 and k=3) have 10 elements.

More Discrete Mathematics and Graphs practice in Ucenly

Sources

Written by Ucenly. Based on the BE5B01DMG course materials: