

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A handout for homework 6 in the algorithm design and analysis course at pennsylvania state university, cse 565, fall 2008. It includes instructions, reminders, and exercises for the students. The exercises cover various topics such as maxup, maxdown temperature problem, segmented least squares problem, and dynamic programming.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Please refer to the general information handout for the full homework policy and options.
Reminders
Exercises These should not be handed in, but the material they cover may appear on exams:
Problem to be handed in
Page limits: The answer to each problem should fit in 2 pages (or one double-sided sheet) of paper. Longer answers will be penalized.
(a) Suppose we multiply the polynomials into the product one at a time, that is:
1 g 0 ← 1 2 for i ← 1 to n 3 do gi ← Multiply(gi− 1 , fi) 4 Output gn
where “Multiply” takes time O(d) to multiply a polynomial of degree d with a polynomial of degree 1. How long will this procedure take? (b) Give an algorithm that computes the coefficients of the product in time O(n log^2 n). (Hint: Use divide and conquer to break the product up into evenly balanced sub-products. It may also help to think about what kind of recurrence has n log^2 n as a solution.)