Chapter 3 - Lecture Note 1 Sets
Chapter 3 - Lecture Note 1 Sets
Discrete Mathematics
Chapter 3
Sets, Functions and Relations
Sets
Chapter Summary
Sets
◦Introduction to Sets
◦Set Operations
◦Set Identities
Functions
Relations
Sets
A set is an unordered collection of objects.
◦the students in this class
◦the chairs in this room
[a , b) = {x | a ≤ x < b}
(a , b] = {x | a < x ≤ b}
Examples:
1. |ø| = 0
2. Let S be the letters of the English alphabet. Then |S| =
26
3. |{1,2,3}| = 3
4. |{ø}| = 1
5. The set of integers is infinite.
Power Sets
Definition: The set of all subsets of a set A, denoted P(A), is called
the power set of A.
Note: If a set has n elements, then the cardinality of the power set
is 2ⁿ.
Tuples
The ordered n‐tuple (a1,a2,…..,an) is the ordered collection that has a1 as
its first element and a2 as its second element and so on until an as its last
element.
The ordered pairs (a,b) and (c,d) are equal if and only if
a = c and b = d.
Cartesian Product
Definition: The Cartesian Product of two sets A and B, denoted
by A × B is the set of ordered pairs (a,b) where a ∈ A and b ∈ B
.
Example:
A = {a,b} B = {1,2,3}
A × B = {(a,1),(a,2),(a,3), (b,1),(b,2),(b,3)}
Truth Sets of Quantifiers
Given a predicate P and a domain D, we define the truth set of
P to be the set of elements in D for which P(x) is true. The truth
set of P(x) is denoted by