Docsity

Computer Science Homework 2: Recurrences from University of San Francisco - Prof. David J., Assignments of Algorithms and Programming

Toggle sidebar
bg1
Department of Computer Science University of San Francisco
Computer Science 673
Fall 2008
Homework 2: Recurrences
Due Wednesday, September 17th, 1:30pm
All problem / exercise numbers are from the 2nd edition of Introduction to Algorithms
(the 1st edition is different!) Note the difference between problems and exercises!
1. Problem 4-2 Finding the missing integer.
Hint: This is in the reccurrence chapter! Is there some way we could divide the problem
into smaller subproblems? You can assume that n= 2k
āˆ’1 for some k.
2. Problem 4-4 (parts a,b,c,d,f,g,h,i,j only.). For part b you can assume that nis a power
of 5. You can use just a recursion tree for parts b,g,j, you do not need to also use the
substitution method to verify your solution.
3. Problem 4-6 CLSI chip testing
This problem will require some ā€œthinking timeā€. Take a look at it early.
1

Partial preview of the text

Download Computer Science Homework 2: Recurrences from University of San Francisco - Prof. David J. and more Assignments Algorithms and Programming in PDF only on Docsity!

Department of Computer Science University of San Francisco

Computer Science 673

Fall 2008

Homework 2: Recurrences

Due Wednesday, September 17th, 1:30pm

All problem / exercise numbers are from the 2nd edition of Introduction to Algorithms (the 1st edition is different!) Note the difference between problems and exercises!

  1. Problem 4-2 Finding the missing integer.

Hint: This is in the reccurrence chapter! Is there some way we could divide the problem into smaller subproblems? You can assume that n = 2k^ āˆ’ 1 for some k.

  1. Problem 4-4 (parts a,b,c,d,f,g,h,i,j only.). For part b you can assume that n is a power of 5. You can use just a recursion tree for parts b,g,j, you do not need to also use the substitution method to verify your solution.
  2. Problem 4-6 CLSI chip testing This problem will require some ā€œthinking timeā€. Take a look at it early.