Академический Документы
Профессиональный Документы
Культура Документы
SET THEORY
Discrete Mathematics
1
Discrete Mathematics
Discrete Mathematics
3
Discrete Mathematics
Discrete Mathematics
5
Special Sets
N : the set of natural numbers, or the set
of non-negative integers i.e. {0, 1, 2, 3,
4, ...}
Z : the set of integers, or { ...,-1, 0, 1, 2,
...}
Q : the set of rational numbers, i.e., {
1/3, 2/5, ...}
R : the set of real numbers, i.e.,
{1.23456, 2.35353....}
: the null or empty set, or the set { }
with no elements.
Finite sets
A set that has limited number of elements
or its elements can be matched with the
elements of some subset {1, 2,...n} of
the natural numbers.
Infinite sets
It is a set which contain unlimited
elements such that there is no way to
match all the elements.
Discrete Mathematics
Discrete Mathematics
7
Subsets ()
Subsets are defined as sets that contains
the same elements usually denoted as A
B (A is a subset of B) i.e. every element
of A is also an element of B.
Example 1. {1, 2, 3, 2,1} {1, 2, 3}
Discrete Mathematics
Discrete Mathematics
9
Venn Diagram
It is a systematic development that
utilizes graphical illustration like geometric
figures. It is used to show existing
relationships among sets usually
represented with a rectangle (for
universal set) and circles (for sets).
Discrete Mathematics
10
Venn Diagram
Discrete Mathematics
11
12
Sample problems:
1. List the elements of each of the following
sets:
a. set of odd natural numbers less than 10.
b. set S = {x Z : x2 + 3x + 2 = 0}
c. set S = {x N : 2x 4 0}
d. set S = {x Z : x2 = 1}
e. set S = { x N : x = 2k2 3 for some k
N}
Discrete Mathematics
Discrete Mathematics
13
Operations on sets
Union of two sets A and B (A B)
It is the set which consists of all the
elements EITHER in set A or in set B or
BOTH mathematically denoted as {x : x
A or x B}.
14
Discrete Mathematics
Discrete Mathematics
15
16
Discrete Mathematics
Discrete Mathematics
17
Set Difference
It is the set containing those elements
that are in A but not in B, denoted by A
B (relative difference). The difference of A
and B is also called the complement of B
with respect to A, represented as A B =
{x : x A x B}
18
Principle of inclusion-exclusion
This technique is applied to determine the
number of elements in the union of two
and three sets mathematically stated as,
A B A B A B
A B C A B C A B B C AC A B C
Discrete Mathematics
Discrete Mathematics
19
20
Set Identities
1. A U = A
2. A = A
3. A U = U
4. A =
5. A A = A
6. A A = A
7. A B = B A
8. A B = B A
Set Identities
(Identity Law)
A A
(Complementation Law)
(B C) = (A B) C (Distributive
11. A
(B C) = (A B) C Law)
12. A
(A B) = A
(Absorption Law)
13. A
B = (A B) (B A) (Symmetric
14. A
(B C) = (A B) C difference)
15. A B A B
(De Morgans Law)
9.
10. A
(Domination Law)
(Idempotent Law)
(Commutative Law)
16. A B
Discrete Mathematics
A B
Discrete Mathematics
21
Product of Sets
The Cartesian product of the sets A1, A2,
A3,...An, denoted by A1x A2 x A3 x...x An is
the set of ordered n-tuples (a1, a2,
a3,...an) where ai belongs to Ai for i = 1,
2, 3,...n defined mathematically as,
A1x A2 x A3 x...x An = {(a1, a2,...an) : ai
Ai
for i = 1, 2, 3,...n}
Example 3. Let A = {0, 1}, B = {2, 3}
A x B = {(0, 2), (0, 3), (1, 2), (1, 3)}
22
Discrete Mathematics
Discrete Mathematics
23
24
Discrete Mathematics
Discrete Mathematics
25
Discrete Mathematics
27
26
a.
b.
c.
d.
e.
Discrete Mathematics
28
Discrete Mathematics
29
Mathematical Induction
It is the standard method of mathematical
proof typically used to establish that a
given statement is true of all natural
number. It is done by proving the first
statement in the infinite sequence of
statements is true and then proving that if
any one statement in the infinite
sequence of statement is true then so is
the next one. This proof technique also
often is used to prove that algorithms are
correct and to determine expressions for
the complexity of algorithms.
Discrete Mathematics
30
Discrete Mathematics
31
32
Discrete Mathematics
Discrete Mathematics
33
34
Discrete Mathematics
35
36
Fibonacci Numbers:
A0, A1, A2, A3, A4, A5, A6, A7, A8, A9,
A10,,An1 + An2
1, 1, 2, 3, 5, 8, 13, 21, 34, 55,
89,,An
Discrete Mathematics
37
10