CS 241, Fall 99, Homework 2 Practice Exercises


In past semesters, students have requested some practice exercises that are like those in the homework. These are optional and are not submitted.

Homework 2 follows up on a lot of problems done in Homework 1. Thus you should also use Homework 1 and the HW 1 practice problems for this purpose.

If you are having problems with solving the recurrence for Algorithm E of problem 2, look over the solution from Challenge Problem 1 from HW 1. They are very similar problems. If you any questions about how this solutions was derived please come to our office hours and we'll guide you throught it. (It may help if you draw the recurrence tree.)

If you would like additional practice problems, please let me know which type of problems you want more practice with.


  1. Give tight asymptotic bounds for T(n) in each of the following recurrences. Assume that T(1)=1. (Hint: Use the master method.)

  2. Give an asymptotically tight solution to the recurrence
    T(n) = T(n-2) + 3n
    T(0) = c
    
    solution