Discrete Mathematics and Its Applications: Basic Structures: Sets, Functions, Sequences, and Sums
Discrete Mathematics and Its Applications: Basic Structures: Sets, Functions, Sequences, and Sums
Chapter 2
Basic Structures:
Sets, Functions,
Sequences, and Sums
歐亞書局 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
2.1 Sets
2.2 Set Operations
2.3 Functions
2.4 Sequences and Summations
歐亞書局 P. 111
2.1 Sets
歐亞書局 P. 114
• Definition 4: The set A is a subset of B if
and only if every element of A is also an
element of B.
A B iff x(x A x B)
• Theorem 1: For every set S,
(1) S and (2) S S.
• Proper subset: A B
x(x A x B) x(x B x A)
• If AB and BA, then A=B
• Sets may have other sets as members
– A={, {a}, {b}, {a,b}}
B={x|x is a subset of the set {a,b}}
– A=B
FIGURE 2 (2.1)
歐亞書局 P. 122
FIGURE 2 (2.2)
歐亞書局 P. 122
• Definition 3: Two sets are disjoint if their
intersection is the empty set.
• |AB|=|A|+|B|-| A B |
– Principle of inclusion-exclusion
• Definition 4: The difference of the sets A and B,
denoted by A-B, is the set containing those
elements that are in A but not in B.
– Complement of B with respect to A
– A-B={x|xA xB}
• Definition 5: The complement of the set A,
denoted by Ā, is the complement of A with
resepect to U.
– Ā = {x|xA}
FIGURE 3 (2.2)
歐亞書局 P. 123
FIGURE 4 (2.2)
歐亞書局 P. 123
Set Identities
歐亞書局 P. 124
TABLE 2 (2.2)
歐亞書局 P. 126
Generalized Unions and Intersections
歐亞書局 P. 127
2.3 Functions
歐亞書局 P. 133
FIGURE 2 (2.3)
歐亞書局 P. 134
• Definition 3: Let f1 and f2 be functions from
A to R. f1+f2 and f1f2 are also functions from
A to R:
– (f1+f2)(x) = f1(x)+f2(x)
– (f1f2)(x)=f1(x)f2(x)
• Definition 4: f: AB, S is a subset of A.
The image of S under the function f is:
f(S)={t|sS(t=f(s))}
One-to-One and Onto Functions
歐亞書局 P. 137
One-to-One and Onto Functions
歐亞書局 P. 138
FIGURE 5 (2.3)
歐亞書局 P. 139
Inverse Functions and Compositions of
Functions
歐亞書局 P. 139
• Definition 10: Let g be a function from A
to B, and f be a function from B to C. The
composition of functions f and g, denoted
by f○g, is defined by:
– f○g(a) = f(g(a))
– f○g and g○f are not equal
FIGURE 7 (2.3)
歐亞書局 P. 141
FIGURE 8 (2.3)
歐亞書局 P. 142
FIGURE 9 (2.3)
歐亞書局 P. 143
TABLE 1 (2.3)
歐亞書局 P. 144
2.4 Sequences and Summations
歐亞書局 P. 153
Summations
• Summation notation:
n
a j
n
j m
aj
1 j n
aj
j m
– am+am+1+…+an
– j: index of summation
– m: lower limit
– n: upper limit
• Theorem 1 (geometric series): If a and r are
real numbers and r≠0, then
ar n 1 a
n
if r 1
ar j
r 1
j 0 (n 1 )a if r 1
– Proof
TABLE 2 (2.4)
歐亞書局 P. 157
Cardinality
歐亞書局 P. 159
FIGURE 2 (2.4)