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.
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
- Set operations
- Map properties
- Images and preimages
- Finite and infinite size
Practice with worked solutions
Question 1
How many subsets does a five-element set have?
Worked solution
Answer: 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
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
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:
- 2 Sets and Relations, p. 3, 6, 11, 13
- 2 Sets and Relations - tutorial 2026, p. 11, 12, 16