Lecture 1_Set Theory & Relations - Copy (1)
Lecture 1_Set Theory & Relations - Copy (1)
U x y B
A
z
a
C
More Terminology and Notation (1)
• Examples
o Let B = {x | (x100) (x is prime)}, the cardinality
of B is |B|=25 because there are 25 primes less
than or equal to 100.
o The cardinality of the empty set is ||=0
o The sets N, Z, Q, R are all infinite
Proving Equivalence (1)
U
A B
Set Operators: Intersection
U
A B
Disjoint Sets
U
A B
Set Difference
U
A B
Set Complement
U A
A
Set Complement: Absolute & Relative
U U
A A B
A
Relations and Mappings of
sets
A relation is a set of ordered pairs.
This is a
{(2,3), (-1,0), (4,5), (9,9), (0,1)} relation
range = {1,5,3,0,10}
1
2
2
4
3
6
4 8
5 10
1
2
2
4
3
6
4 8
5 10
1
2
2
4
3
6
4 8
5 10
1
2
2
4
3
6
4 8
5 10
1
2
2
4
3
6
4 8
5 10