Question: Suppose you have N items with weights w 1 , . . . , wN 0 . Let [ N ] = { 1 ,

Suppose you have N items with weights w1,..., wN 0. Let [N ]={1,..., N } and for
any set S [N ], define w(S)= P
j in S wj . In the problem SPLIT-EVEN, we are given such
a collection {w1,..., wN } and the goal is to partition [N ] into sets S1, S2 and S3 so that
max{w(S1), w(S2), w(S3)} is minimized.
For this problem, we consider the following greedy strategy:
1. Initialize sets S1, S2, S3 to be empty sets.
2. For i =1 to N ,{,
3. Let j in {1,2,3} be such that w(Sj ) has the least weight among S1, S2 and S3.
(ties can be broken arbitrarily)
4. Add the ith item to the set Sj }.
5. Output the sets S1, S2 and S3.
To analyze the performance, let OPT denote the cost of the best solution i.e., OPT =
minJ1,J2,J3 max{w(J1), w(J2), w(J3)} where (J1, J2, J3) ranges over all partitions of [N ].
(a)[10 points] Prove that OPT 1/3(P
j wj ) and OPT maxj wj .
(b)[10 points] Assume without loss of generality that when our algorithm terminates, w(S1)=
max{w(S1), w(S2), w(S3)}. Suppose was the last index added to S1. Prove that w(S1)w
1
3(PN
j=1 wj ).
(c)[5 points] From (a) and (b), prove that w(S1)2 OPT.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!