Assignment 3 -- due Wednesday, February 7
at the beginning of lab
CS 4521 Spring Semester, 2007
15 Points
Topics: Growth of Functions, Master Theorem
The assignment:
Do the following Exercises from the text, which ask you to prove
properties of n!, the Fibonacci numbers, and polynomials.
- (7 points) Exercise 3.2-3, page 57.
First show that lg(n!) = O(n lg n), which follows from
lg(n!) ≤ n lg(n) (easy to show).
Second show lg(n!) = Ω(n lg n), which follows from
lg(n!) ≥ 1/4 n lg(n) (for n ≥ 4).
Then lg(n!) = Θ(n lg n) follows from "First" and "Second"
and Theorem 3.1, page 46).
Hints for "Second": first show that
lg(n!) ≥ ceiling((n+1)/2) lg(ceiling(n/2))
which is ≥
(n/2) lg(n/2)
(show this for both odd and even n), then show that
(n/2) lg(n/2) ≥ 1/4 n lg(n) for n ≥ 4.
To show n! = ω(2n) and n! = o(nn),
you can show that the
limits as n goes to infinity of n!/2n
and n!/nn
are infinity
and 0 respectively, since n!, 2n, and nn
are all (asymptotically) nonnegative.
- (3 points) Exercise 3.2-7, page 57.
Hint: use the fact that φ satisfies the equation
x2 = x + 1 -- you need to prove this
(and use a "strong" form of induction).
- (3 points) Exercise 4.3-1, page 75.
- (2 points) Exercise 4.3-3, page 75.
Page URL: http://www.d.umn.edu
/~ddunham/cs4521s07/assignments/a3/assignment.html
Page Author: Doug Dunham
Last Modified: Monday, 29-Jan-2007 18:54:08 CST
Comments to: ddunham@d.umn.edu