1 / 11

Algorithms HW#3 Solution

A solution guide to problems 2(a), 1, 4, and 5 from Algorithm Homework 3, including proofs and bounding summations.

lock
Télécharger la présentation

Algorithms HW#3 Solution

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Algorithms HW#3Solution 李孟、施舜元 2014

  2. HW#3 Problem 2

  3. HW#3 Problem 2(a) , 1 * 1000 ,

  4. HW#3 Problem 2(b) • f • f , ,

  5. HW#3 Problem 4 • Let , and T(1) = 1, T(2) = 3 • , 3

  6. HW#3 Problem 4 (cont.) • -3

  7. HW#3 Problem 1 • Below is a theorem from Manber'sbook:For all constants and , and for all monotonically increasing functions , we have . • Prove, by using the above theorem, that for all constants , .

  8. HW#3 Problem 1 (cont.) • let , is monotonically increasing function • Proved.

  9. HW#3 Problem 3

  10. HW#3 Problem 5 • Use Equation 1, shown below, to prove that satisfies • Bounding a summation by an integral • If f (x) is a monotonically increasing continuous function, then

  11. HW#3 Problem 5 (cont.) f(n) S(n) = O(n)

More Related