Introduction to Algorithms by CLRS
Exercises
3.1-1
Let be asymptotically nonnegative functions. Using the basic definition of -notation, prove that .
3.1-2
Show that for any real constants and , where ,
could be . But the difinition of : for all . Whatever value is, the equation will always be as it is raised to the positive power of . Let
.
Prove that for all
3.1-3
Explain why the statement, “The running time of algorithm A is at least ” is meaningless.
Big is the asymptotic upper bound. “At least” means the asymtotic lower bound .
3.1-4
Is ? Is ?
3.1-5
Prove Theorem 3.1
is asymptotic tight bound. The upper bound is the and the lower bound is the
3.1-6
Prove that the running time of an algorithm is if and only if its worst-case running time is and its best-case running time is
3.1-7
Prove is the empty set.
3.1-8
We can extend our notation to the case of two parameters n and m that can go to infinity independently at different rates. For a given function we denote the set of functions:
Give corresponding definitions for and .