Professional Documents
Culture Documents
2
Basic Set Theory Definitions
A set is a collection of elements
An element is an object contained in a set
If every element of Set A is also contained
in Set B, then Set A is a subset of Set B
– A is a proper subset of B if B has more
elements than A does
The universal set contains all of the
elements relevant to a given discussion
3
Set Theory Symbol
Symbol Meanin
g
Upper case designates set name
Lower designates set
case elements
{ or} enclose elements in
set is (or is not) an element of
is a subset of (includes
equal sets)
is a proper
subset of is not a
| or :
subset of
| |
is a
superset of 4
Set Theory Symbol
Symbol Meanin
∩ g intersection
∪ union
A or A the compliment of A”; all elements not in A
A– B all elements in A but not in B
n(A) the number of elements in A
A= B (A is equal to B )A and B contain the same
A≅ B (A is equivalent to B)
5
Set Notation: Defining Sets
a set is a collection of objects
Examples:
– A = {2,4,6,8,10}
– A = {x | x is a positive even integer
<12}
6
Set Notation Elements
an element is a member of a
set
notation: means “is an element of”
means “is not an element
Examples: of”
– A = {1, 2, 3, 4}
1 A
6 A
2 A
z A 7
– B = {x | x is an even number
Subsets
a subset exists when a set’s members are
also contained in another set
notation:
8
Subset Relationships
A = {x | x is a positive integer 8}
set A contains: 1, 2, 3, 4, 5, 6, 7,
8
B = {x | x is a positive even integer
10} set B contains: 2, 4, 6, 8
C = {2, 4, 6, 8, 10}
set C contains: 2, 4, 6, 8, 10
Subset
A A Relationships A B A C
B A B B B C
C A C B C C
9
Set Equality
Two sets are equal if and only if they contain
precisely the same elements.
The order in which the elements are listed
is unimportant.
Elements may be repeated in set definitions
without increasing the size of the sets.
Examples:
A = {1, 2, 3, 4} B = {1, 4, 2, 3}
A B and B A; therefore, A = B and B = A
A = {1, 2, 2, 3, 4, 1, 2} B = {1, 2, 3, 4}
A B and B A; therefore, A = B and B = A
10
Cardinality of Sets
Cardinality refers to the number
of elements in a set
A finite set has a countable number
of elements
An infinite set has at least as many
elements as the set of natural
numbers
notation: |A| represents the cardinality of
Set A
11
Finite Set Cardinality
Set Definition
Cardinality
26 B = {2, 3, 4, 5, 6, 7} |B| = 6
=
0
13
Universal Sets
The universal set is the set of all things
pertinent to a given discussion
and is designated by the symbol U
Example:
U = {all students at IVM}
Some Subsets:
A = {all Computer Technology students}
B = {freshmen students}
C = {sophomore students}
14
The Empty Set
Any set that contains no elements is called
the
empty set
the empty set is a subset of every set
including itself
notation: { } or
17
Venn Diagrams
Venn diagrams show relationships between
sets and their elements
Sets A & B
Universal Set
18
Example 1
Set Definition Elements
A = {x | x Z+ and x 8} 1234567
B = {x | x Z+; x is even and 10} 82 4 6 8
10 A B
B A
19
Example 2
Set Definition Elements
A = {x | x Z+ and x 9} 12345678
B = {x | x Z+ ; x is even and9 8} 2 4 6
8
A B
B
A A
B
20
Example 3
Set Definition Elements
A = {x | x Z+ ; x is even and 2468
10} B = x Z+ ; x is odd and x 10
10 } 13579
A B
B
A
21
Example 4
Set Definition
U = {1, 2, 3, 4, 5, 6, 7,
8}
A = {1, 2, 6, 7}
B = {2, 3, 4, 7}
C = {4, 5, 6, 7}
A = {1, 2, 6, 7}
22
Example 5
Set Definition
U = {1, 2, 3, 4, 5, 6, 7,
8}
A = {1, 2, 6, 7}
B = {2, 3, 4, 7}
C = {4, 5, 6, 7}
B = {2, 3, 4, 7}
23
Operations On Sets Example
If U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
A = {2, 4, 6, 8, 10}
B = (1, 3, 6, 7, 8}
C = {3, 7}
A ∪ B = {1,2, 3, 4, 6, 7, 8, 10}
A′ = {1, 3, 5, 7, 9}
B′ = {2, 4, 5, 9, 10}
B ∩ A′ = {1, 3, 7}
B ∩ C′ = {1, 6, 8}
A – B = {2, 4, 10}
A Δ B = {1, 2, 3, 4, 7, 10} 24
Some Properties
A AB and B AB
AB A and AB B
AB BcAc
A B = ABc
–(A B) C = A (B
C)
–(A B) C = A (B
C) 26
Algebra of Sets ctd…
Commutative laws
–A B = B A
–A B = B A
Distributive laws
–A (B C) = (A B) (A
C)
–A (B C) = (A B) (A
C) 27
Algebra of Sets ctd…
Identity laws
–A = A
–A U = A
–A U = U
–A =
Involution
laws
–(Ac)c = A 28
Algebra of Sets ctd…
Complement
laws
–A Ac = U
–A Ac =
–Uc =
–c = U
29
30