Return to main page


Design and Analysis of Algorithms

CMSC 441 - Fall 2021


Homework 2

Due: Wednesday, October 6th by 11:59:00 PM EDT (on blackboard)

Musical Selection: Symphony No. 3 in E Flat Major — Ludwig van Beethoven

Respond to the questions below with appropriate responses as directed.

  1. (10 points) Using the substitution method, show that the solution of the recurrence T(n) = T(⌈n / 2⌉) + 1 is O(lg n)
  2. (20 points) Using a recursion tree, find a good asymtotic upper bound on the recurrence T(n) = 2 T(n - 1) + 1. Use the substitution method to show that the answer you provided is correct.
  3. (10 points) Using the master theorem, find a tight asymptotic bound for the recurrence T(n) = 2 T(n / 4) + 1. Show all work, including the constants needed.
  4. (10 points) Using the master theorem, find a tight asymptotic bound for the recurrence T(n) = 2 T(n / 4) + √n. Show all work, including the constants needed.

Questions adapted from "Introduction to Algorithms" 3rd edition.
Last modified Sunday, 03-Oct-2021 14:38:32 EDT