HW1 - COT 5405 Algorithms Spring 2003 Due Date 5pm Homework Assignment 1 Please use Divide-and-Conquer approach to solve each of these

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COT 5405: Algorithms Spring 2003 Due Date: 06/02/2003, 5pm Homework Assignment 1. Please use Divide-and-Conquer approach to solve each of these problems (unless indicated otherwise). Also, you are expected to derive the best possible algorithm to solve the problem (unless indicated otherwise). Poor performance solutions (even if they are correct) may not get any credit. Divide your solution into four parts: 1. High Level Algorithm 2. Pseudo Code (or code in any high level language such as Java, C, C++) 3. Proof of Correctness 4. Complexity Analysis Please write legibly. 1. (10 points) Solve the recurrence relation iteratively (not using the Master’s theorem): T (N) = 2T ( N /2 ) + log N Make any reasonable assumptions. Find an exact formula for T (N), and then give a Theta expression. 2. (10 points) Suppose T(N) = T(N-1) + T(N-2) + 1 and T(1) = T(0) = 1. Prove that T(N) = Θ (F N+1 ) where F N+1 represents Fibonacci sequence. 3. (10 points) Show that F n >= (3/2) n-2 for all n >= 1 where F n denotes the n-th Fibonacci number. In other words, prove that F
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/27/2011 for the course COT 5405 taught by Professor Ungor during the Fall '08 term at University of Florida.

Page1 / 4

HW1 - COT 5405 Algorithms Spring 2003 Due Date 5pm Homework Assignment 1 Please use Divide-and-Conquer approach to solve each of these

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online