Suppose that we have a set of items and a set of devices, each possessing two limited resources. Each item requires a given amount of the resources. Further, each item is associated with a profit and a color, and items of the same color can share the use of one resource. We need to allocate the resources to the most profitable (feasible) subset of items. In alternative formulation, we need to pack the most profitable subset of items in a set of 2-dimensional bins (knapsacks), in which the capacity in one dimension is shamble. Indeed, the special case where we have a single item in each color is the well-known 2-dimensional vector packing (2DVP) problem. Thus, the problem that we study is strongly NP-hard for a single bin, and MAX-SNP hard for multiple bins. Our problem has several important applications, including data placement on disks in media-on-demand systems. We present approximation algorithms as well as optimal solutions for some instances. In some cases, our results are similar to the best known results for 2DVP. Specifically, for a single knapsack, we show that our problem is solvable in pseudo-polynomial time and develop a polynomial time approximation scheme (PTAS) for general instances. For a natural subclass of instances we obtain a simpler scheme. This yields the first combinatorial PTAS for a non-trivial subclass of instances for 2DVP. For multiple knapsacks, we develop a PTAS for a subclass of instances arising in the data placement problem. Finally, we show that when the number of distinct colors in the instance is fixed, our problem admits a PTAS, even if the items have arbitrary sizes and profits, and the bins are arbitrary.
[1]
Gerhard J. Woeginger,et al.
There is no Asymptotic PTAS for Two-Dimensional Vector Packing
,
1997,
Inf. Process. Lett..
[2]
Sanjeev Khanna,et al.
On multi-dimensional packing problems
,
2004,
SODA '99.
[3]
Philip S. Yu,et al.
Disk load balancing for video-on-demand systems
,
1997,
Multimedia Systems.
[4]
Eugene Levner,et al.
Computational Complexity of Approximation Algorithms for Combinatorial Problems
,
1979,
MFCS.
[5]
Rainer Schrader,et al.
ON THE EXISTENCE OF FAST APPROXIMATION SCHEMES
,
1981
.
[6]
Éva Tardos,et al.
Scheduling unrelated machines with costs
,
1993,
SODA '93.
[7]
A. Frieze,et al.
Approximation algorithms for the m-dimensional 0–1 knapsack problem: Worst-case and probabilistic analyses
,
1984
.
[8]
Sartaj Sahni,et al.
Approximate Algorithms for the 0/1 Knapsack Problem
,
1975,
JACM.
[9]
Hadas Shachnai,et al.
On Two Class-Constrained Versions of the Multiple Knapsack Problem
,
2001,
Algorithmica.
[10]
Samir Khuller,et al.
Approximation algorithms for data placement on parallel disks
,
2000,
SODA '00.
[11]
Shahram Ghandeharizadeh,et al.
Design and Implementation of Scalable Continuous Media Servers
,
1998,
Parallel Comput..
[12]
David S. Johnson,et al.
`` Strong '' NP-Completeness Results: Motivation, Examples, and Implications
,
1978,
JACM.
[13]
Sanjeev Khanna,et al.
A PTAS for the multiple knapsack problem
,
2000,
SODA '00.