UMBC CMSC441, Design & Analysis of Algorithms, Fall 1999, Section 0101

Homework Assignments 1-4

The following homework problems have been assigned for Section 0101 of CMSC441.

Homework 1, Due Thursday September 9

  1. For each of the following pairs of functions f(n) and g(n), give the values of n0, f(n0) and g(n0) where n0 is the smallest positive integer such that f(n0) >= g(n0). Hint: you may need to use a calculator. Use the log identity

    log2 x = (log10 x)/(log10 2)

    if your calculator does not take logs in base 2.

    1. f(n) = n and g(n) = 50 lg2 n

    2. f(n) = 2n/2 and g(n) = n18

    3. f(n) = n1/5 and g(n) = lg12 n
     

  2. Prove that the following statements are correct:

    1. 5n2 - 6n = Theta(n2)

    2. n! = O(nn)

    3. n1.001 + n lg n = Theta(n1.001)
     

  3. Show that the following statements are incorrect:

    1. 10 n2 + 9 = O(n)

    2. n2/lg n = Theta(n2)
     

Homework 2, Due Thursday September 16

  1. Prove by induction that for x != 1 and n >= 0 that

    (Summation of xi for i=0 to n) = (xn+1 - 1)/(x-1).

  2. Show that (summation of i2 for i=0 to n) = Theta(n3).

  3. Exercise 4.1-5, page 57.
    Hint: use the fact that log(0.75 n) > log (n/2 + 17) for large enough n.

  4. Exercise 4.2-1, page 60.

Homework 3, Due Thursday September 23

  1. Problem 4-1, page 72.
    In the cases where you use the Master Theorem, clearly state which case you are using and the asymptotic bounds on T(n).

  2. Exercise 7.5-4, page 151.

  3. Exercise 7.5-5, page 151.

  4. Problem 7-1, page 152.

Homework 4, Due Thursday September 30

  1. Problem 8-3, page 169.

  2. Problem 8-4, page 169-170.

  3. Exercise 9.3-4, page 180.


Last Modified: 1 Sep 1999 20:52:31 EDT by Richard Chang
to Fall 1999 CMSC 441 Section Homepage