What Is A Set?
What Is A Set?
What is a set?
a A 4 ∈ {1, 2, 3, 4}
Examples
Examples
Properties of Sets
{a, a, a, e, i, o, o, o, o, o, u}
Finite Set
a set is a finite set if and only if there is a number that describes
exactly how many elements it contains.
Example: {1, 2, 3, 4, 5} , {1, 2, 3, …, 10}
Infinite Set
A set is an infinite set if it has infinitely many elements.
Example: {1, 2, 3, 4, …} , {2, 4, 6, 8, …}
Singleton Set
A set with only one element
Examples: set of positive integers greater than 3 but less than
5, set of even prime numbers
Null Set
A set containing no element
Examples: set of integers greater than 4 but less than 5, set of
yellow carabao
Universal Set
U is the universal set – the set of all of elements (or the “universe”
from which given any set is drawn
Often Used Sets
Subsets
If A and B are sets, then A is called a subset of b, written A B if
and only if every element of A is also an element of B
Improper Subset
Let T = {0, 1, 2, 3, 4, 5}
Let R = {0, 1, 2, 3, 4, 5}. R is equal to T, and thus is a subset
(but not a proper subset) of T
Can be written as: R T and R T (or just R = T)
Let Q = {4, 5, 6}. Q is neither a subset or T nor a proper
subset of T
Power Sets
Given the set S = {0, 1}. What are all the possible subsets of S?
They are: Ø (as it is a subset of all sets), {0}, {1}, and {0, 1}
The power set of S (written as P(S)) is the set of al the
subsets of S
P(S) = { Ø, {0}, {1}, {0, 1} }
Note that S = 2 and P(S) = 4
Let T = {0, 1, 2}.
The P(T) = { Ø, {0}, {1}, {0, 1}, {0, 2}, {1, 2}, {0, 1, 2} }
Note that T = and P(T) = 8
P(Ø) = { Ø }
Note that Ø = 0 and P(Ø) = 1
If a set has n elements, then the power set will have 2 n
elements
Equal Set
Two sets are equal if they have exactly the same elements (A=B)
{1, 2, 3, 4, 5} = {5, 4, 3, 2, 1} Remember that order does not
matter.
{1, 2, 3, 2, 4, 3, 2, 1} = {4, 3, 2, 1} Remember that duplicate
elements do not matter.
However,
{1, 2, 3, 4, 5} ≠ {4, 3, 2, 1}
Equivalent Set
Two sets are equivalent if they have the same number of elements
Denoted by A ↔ B
{1, 2, 3, 4, 5} ↔ {a, b, c, d, e}
Disjoint Sets
Two sets are disjoint if their intersection is the empty set
Examples:
{1, 2, 3} and {3, 4, 5} are not disjoint
{New York, Washington} and {3, 4} are disjoint
{1, 2} and Ø are disjoint
Their intersection is the empty set
Ø and Ø are disjoint
Their intersection is the empty set
Operations of Sets
Union ( A B )
Set of all elements that are either A or in b or in both sets.
A B = { x | x A or x B }
Examples:
{1, 2, 3} U {3, 4, 5} = {1 , 2, 3, 4, 5}
{New York, Washington} U {3, 4} = {New York,
Washington, 3, 4}
{1, 2} U Ø = {1, 2}
Intersection ( A B )
Set of all elements that are in both A and B
A B = { x | x A and x B }
Examples
{1, 2, 3} {3, 4, 5} = {3}
Examples
{1, 2, 3} {3, 4, 5} = {1, 2}