
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

ECS 122A: Algorithm Design and Analysis Handout 1 UC Davis — Charles Martel Feb. 27, 2008
in the CS office. No late homeworks will be accepted.
(25) Problem 1. Problem 4.2 in the text
(25) Problem 2. Problem 4.4 in the text.
(25) Problem 3. Problem 9.6 in the text.
(25) Problem 4. Consider the online version of bin-packing where we have pack item i before we see the remaining items. In addition, we don’t know how many items we need to pack until we see them (e.g. we must pack items a 1 ,... ak without knowing if there are additional items, or what they are). a. Consider the following two possible lists of items to pack: L 1 = (. 4 ,. 4 ,... , .4) with k items. L 2 = L 1 , (. 6 ,. 6 ,... , .6) with k items in the second part of the list. Use these two lists to prove that no online algorithm can pack all lists using fewer than 4/ OPT bins (note this is not a bound on computing time, even if the algorithm is allowed infinite time to find the best packing it can’t without knowledge of future items). b. Construct an alternate collection of lists to pack to show a better bound than 4/3 for online bin-packing (it’s known that no online algorithm can achieve a bound of 3/2 of OPT, but you can try for something in between 4/3 and 3/2).