CS70_Exam_2__Fall_2006

CS70_Exam_2__Fall_2006 - CS570 Analysis of Algorithms Fall...

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

View Full Document Right Arrow Icon
CS570 Analysis of Algorithms Fall 2006 Exam 2 Name: _____________________ Student ID: _________________ Maximum Received Problem 1 10 Problem 2 20 Problem 3 10 Problem 4 20 Problem 5 20 Problem 6 20 Note: The exam is closed book closed notes.
Background image of page 1

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

View Full DocumentRight Arrow Icon
1) 10 pts By using Strassen's algorithm, we can computes the product of two n x n matrices in O(n^2.81) time. This was achieved because we found a way to multiply the n/2 x n/2 matrices with only 7 multiplications rather than 8. Suppose we came up with a Strassen-like algorithm as follows. Assume that instead of splitting each matrix into four n/2 x n/2 matrices, we split each matrix into sixteen n/4 x n/4 matrices, and that the result is computed with only m multiplications instead of the normal 64. How small should m be for this new algorithm to be asymptotically faster than the original Strassen algorithm?
Background image of page 2
2) 20 pts a- Given an array of integers A[1…n], give a divide-and-conquer algorithm to find the minimum ratio of A[i]/A[i+1] for 0<i<n. Your answer should clearly say how to
Background image of page 3

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

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

Page1 / 11

CS70_Exam_2__Fall_2006 - CS570 Analysis of Algorithms Fall...

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

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