Big-O Exercises
Definitions of Big-O, Big-, Big-
Big-O
|
For a non-negative function, if and only if there exist positive constants and such that
|
Big
|
For a non-negative function, if and only if there exist positive constants and such that
|
Big
|
iff
|
Limit Definitions
Exercise 1
Use the non-limit definition of big-O to demonstrate that
(This requires that you find constants and that satisfy the definition.)
Exercise 2
Determine the relationship between and by finding .
Your solution must show each step of the derivation. In the end,
either the numerator, the denominator, or both, must be constants.
Exercise 3
Determine the relationship between and by finding .
Some potentially helpful reminders:
, ,
Exercise 4
Assume we are working with an algorithm that requires
steps to complete. By what factor does the running time increase if we
double the input size? How does that answer change if the running time
is instead ?