Title: Mathematical Preliminaries
1Mathematical Preliminaries
2Sets
- A set is a collection of distinguishable
elements. - elements are either a primitive or another set.
- no duplicates
- Terminology
- base type
- primitive element
1, 4 5, 2, 3 , 22 P 5, 16, 20
3Set Terminology
- Assume the following definitions
A 2, 3, 5 B 5, 10
x x is a positive integer x ? B P( x )
x ? A x ? A ? ??A??
A ? B A ? B A ? B A ? B A B A ? B A ? B A - B
4Powerset
- The powerset of a set A is the set of all
possible subsets for A.
A 2, 3, 5
A 2, 3, 5 The powerset of A is ?, 2 ,
3 , 5 , 2, 3, 2, 5, 3, 5, 2, 3, 5
5Linear Order
- A linear order has the following properties
- For every a, b, and c in a set
- a lt b, a b, or a gt b
- if a lt b and b lt c, then a lt c.
6Factorial Function
- Grows quickly as n becomes larger.
- Time consuming.
- Stirling's approximation
n! n ? ( n 1 ) ? ? ? 2 ? 1
7Permutations
- The arrangement of the elements of a sequence.
????????? ???
- How many permutations are there for a sequence of
length n? - What are all the permutations for the above
sequence?
8Floor and Ceiling
- The floor of a real value x is the greatest
integer less than or equal to x.
y ? x ?
- The ceiling of a real value x is the smallest
integer greater than or equal to x.
y ? x ?
9Modulus Operator
- Returns the remainder of integer division.
- Alternate
n mod n is the integer r s.t. n qm
r for q an integer and 0 lt r lt m.
10Logarithms
- If
- then
- The square of a logarithm log2n
- The logarithm of a logarithm log log n
x logb y
11Logarithms (cont)
- Logarithms have the following properties
12Summations
- The sum for some function over a range of
parameter values. - Which is the same as
13Summations (cont)
14Summations (cont)
15Summations (cont)
- Special cases of the last equation are
16Summations (cont)
- A corollary of the equation
- is
17Recurrences
- recurrence relation a function which is defined
in terms of a smaller instance of itself.
18Recurrences (cont)
- alternate form
- base case stops the recursion
- expanding
19Proof by Contradiction
- We can disprove a theorem or statement by
counterexample. - But, we can not prove by example.
- We can prove by contradiction.
20Proof by Contradiction (cont)
- Technique
- given a theorem, assume it is false
- find a logical contradiction
- If logic is correct, the assumption must be wrong
and the theorem correct.
21Prove by Contradiction Examples
- There is no largest integer.
- Given any integer n, if n2 is even, then n is
even.
22Proof by Mathematical Induction
- Suppose T is a theorem to be proved which can be
expressed in terms of a positive integer n. - Then T is true for any value of n gt c, if the
following conditions are true - base case if T holds for n c, and
- induction step if T holds for n - 1, then T
holds for n.
23Proof by Induction (cont)
- Three steps to an induction proof
- prove the base case
- state the induction hypothesis
- use the induction hypothesis
- If we can show that T is true for n 1, then T
is true for values gt c.