Exercise 1: Asymptotic Notations
- Due Mar 4, 2024 by 11:59pm
- Points 5
- Submitting a discussion post
- Available Feb 29, 2024 at 12pm - Mar 4, 2024 at 11:59pm
Besides the upper bound represented by big-O notation, 4 other asymptotic notations are defined in Chapter 3 (pay attention to where ≤ is used vs. <).
Lower bound (big-Omega):
Ω(g(n)) = {f(n) : there exist positive constants c and n0 such that 0 ≤ cg(n) ≤ f(n) for all n ≥ n0}
Upper bound, not tight (little-o):
o(g(n)) = {f(n) : for any positive constant c, there exists a positive constant n0 such that 0 ≤ f(n) < cg(n) for all n ≥ n0}
Note: n0 may depend on c, i.e., possibly a different n0 for each c
Alternately, limn→∞f(n)g(n)=0
Lower bound, not tight (little-omega):
ω(g(n)) = {f(n) : for any positive constant c, there exists a positive constant n0 such that 0 ≤ cg(n) < f(n) for all n ≥ n0}
Note: n0 may depend on c, i.e., possibly a different n0 for each c
Alternately, limn→∞f(n)g(n)=∞
Tight bound (big-Theta):
Θ(g(n)) = {f(n) : there exist positive constants c1,c2 and n0 such that 0 ≤ c1g(n) ≤ f(n) ≤ c2g(n) for all n ≥ n0}
To complete this graded assignment, reply with an analysis of the following function:
f(n) = 2n5 + 3n2 + 4
- Choose and determine one of the 4 notations for f(n). For example, if you were to do big-O (not an allowed choice), then O(n7) would be one possible answer.
- Then, prove it, explaining how you came up with your answer (i.e., show your work).
- To prove big-Omega, find a c and n0.
- To prove little-o or little-omega, it is easier to find the limit of f(n)/g(n), though you can also show that there is an n0 that works for all c.
- To prove big-Theta, find a c1, c2 and n0.
- Reply to another poster with a short critique of their determined notation and proof.
You may wish to use the tools introduced in Topic 1b: Asymptotic Analysis Online Lecture.
Rubric
Criteria | Ratings | Pts | |
---|---|---|---|
Correct g(n) for chosen asymptotic notation.
threshold:
pts
|
pts
--
|
||
Listed appropriate values for c, n0 or limit.
threshold:
pts
|
pts
--
|
||
Proved values/limit.
threshold:
pts
|
pts
--
|
||
Critique of other student's result/proof.
threshold:
pts
|
pts
--
|
||
Total Points:
5
out of 5
|