HU Design and Analysis of Algorithms Worksheet
Hw1, due Thursday, September 161. Suppose that f (n) = ⇥(g(n)). Assume that both functions increase without limit.
(a) Must it be true that log f (n) = ⇥(log g(n))? Prove or disprove.
(b) Must it be true that 2f (n) = ⇥(2g(n) )? Prove or disprove.
2. (a) Suppose you have a function of two variables, n and k; for instance h(n, k).
If you are told that h(n, k) = O(n + k), what should that mean mathematically?
(b) Let f (n) = O(n) and g(n) = O(n). Let c be a positive constant.
Prove or disprove that f (n) + c · g(k) = O(n + k).
3. Let f (n) =
Pn
y=1 (n
6
· y 23 ).
Find a simple g(n) such that f (n) = ⇥(g(n)), by proving that f (n) = O(g(n)), and that f (n) =
⌦(g(n)).
Don’t use induction / substitution, or calculus, or any fancy formulas.
Just exaggerate and simplify for big-O, then underestimate and simplify for ⌦.
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics