



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
During the study of discrete mathematics, I found this course very informative and applicable.The main points in these lecture slides are:Properties of Functions, Two Example Algorithms, Linear Functions, Logarithmic Function, Exponential Function, Quadratic Function, Growth of Functions, Algorithm Analysis, Constant Factors, Type of Function, Large Values
Typology: Slides
1 / 35
This page cannot be seen from the preview
Don't miss anything!
f(A ∩ B) = {x : ∃a ∈ (A ∩ B), f(a) = x}
Choose an arbitrary b ∈ f(A ∩ B), and show that it must also be an element of f(A) ∩ f(B).
So, ∃a ∈ (A ∩ B) such that f(a) = b.
If a ∈ A (it is), then f(a) = b ∈ f(A).
If a ∈ B (it is), then f(a) = b ∈ f(B).
b ∈ f(A), and b ∈ f(B), so b ∈ f(A) ∩ f(B).
Not one-to-one
Every b ∈ B has at most 1 preimage.
Michael Tito Janet Cindy Bobby
Katherine Scruse
Carol Brady
Mother Teresa
Not onto
Every b ∈ B has at least 1 preimage.
Michael Tito Janet Cindy Bobby
Katherine Scruse
Carol Brady
Mother Teresa
yes yes yes
no yes no
Let f:A→B, and g:B→C be functions.
Prove that if f and g are one to one, then g o f :A→C is one to one.
Recall defn of one to one: f:A->B is 1to1 if f(a)=b and f(c)=b --> a=c.
Suppose g(f(x)) = y and g(f(w)) = y. Show that x=w.
f(x) = f(w) since g is 1 to 1.
Then x = w since f is 1 to 1.
Polynomials: f(x) = a 0 x n^ + a 1 x n-1^ + … + an-1 x 1 + anx 0
Ex: f(x) = x 3 - 2x 2 + 15
Exponentials: f(x) = c dx
Ex: f(x) = 3 10x^ , f(x) = ex
Logarithms: log 2 x = y, where 2 y^ = x. In this course, log 2 n is written lg n. If we write log n, assume log 2 n.
Ceiling: f(x) = x the least integer y so that x ≤ y.
Ex: 1.2 = 2; -1.2 = -1; 1 = 1
Floor: f(x) = x the greatest integer y so that x ≥ y.
Ex: 1.8 = 1; -1.8 = -2; -5 = -
Quiz: what is -1.2 + 1.1?
0
Suppose it takes 1 time unit to answer a query about my number.
We really have no clue how long the algorithm takes to run, but we have an inkling that it depends logarithmically on n.
In this case the algorithm takes about lg n time units.
We say the algorithm has “order log n” running time.
Who is the tortoise?
time
distance
Who is the hare?
How would you describe blue’s performance?
At each distance, who wins?
Very slow growing.
Logarithmic function
Very fast growing.
Exponential function