
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this exam paper are: Master Theorem, Solve Recurrences, Show Using Induction, Analyze Recurrence, Unfolding Trees, Inductive Proof, Recursion Trees, Probabilistic Analysis, Expected Number of Rounds, Algorithm Results
Typology: Exams
1 / 1
This page cannot be seen from the preview
Don't miss anything!

This assignment is due by Tuesday February 12 (in class). Assignments should be handed in before the class begins.
Problem 1: Solve exercises 7.1-3, 7.1-4 (page 174), 7.2-4 (page 178), and 7.4-4 (page 184) in the textbook.
Problem 2: Solve the following recurrences using the master theorem. Clearly justify using the various cases of the theorem.
Problem 3: Solve exercise 4.5-2 (page 97) in the textbook.
Problem 4: Explain why the recurrence T (n) = 2T ( n 2 ) + n log n cannot be analyzed using the Master Theorem. Then show using induction that T (n) = O(n log^2 n).
Problem 5: (i) Analyze the recurrence T (n) =
n T (
n) + n using unfolding or recursion trees (use n = 2 for the base case). You may be better able to track the terms by noting that
n = n (^12) . (ii) Now give an inductive proof that your bound from (i) is indeed correct. You may assume that T (n) ≤ C for n ≤ 16.