Approximation Algorithms problem set #1 β due Wednesday, April 19 Problem 1 (Two-Dimensional Bin Packing). Consider the following problem. We are given a collection of items 1, β¦ , π. Each item π has a weight π€π and size π π . Our goal is to pack all items in the minimum number of identical bins so that the total weight of items in every bin is at most π, and the total size is at most π. Give a constant factor approximation algorithm for the problem. Problem 2 (Max Cut) a. Give a 2-approximation algorithm for the Max Cut problem. In Max Cut, we are given a graph πΊ = (π, πΈ), and our goal is to partition the set of vertices π into two sets πΏ and π to maximize the size of the cut between πΏ and π . The size of the cut between πΏ and π equals the number of edges with one endpoint in πΏ and the other in π . b. Give a 4-approximation algorithm for Directed Max Cut. Given a directed graph πΊ = (π, π΄), partition the set of vertices π into two sets πΏ and π to maximize the size of the directed cut between πΏ and π . The size of the directed cut between πΏ and π equals the number of arcs (π’, π£) β π΄ with π’ β πΏ and π£ β π . Problem 3. Suppose we want to schedule π jobs 1, β¦ , π on a single machine. Each job π has a processing time ππ and weight π€π . The completion time πΆπ of job π is the time when π is completed. Give an exact algorithm for finding the schedule with the minimum weighted completion time defined as follows: π€πππβπ‘ππ πππππππ‘ππ π‘πππ = β π€π πΆπ Problem 4. Give an example of a set of points π in βπ and an initial set of centers (seed for the algorithm) π1 , β¦ , ππ in βπ for which Lloydβs algorithm returns a suboptimal solution. What is the approximation of the algorithm in this case?
© Copyright 2026 Paperzz