2D knapsack: packing squares

  • Authors:
  • Min Chen;György Dósa;Xin Han;Chenyang Zhou;Attila Benko

  • Affiliations:
  • School of Software of Dalian University of Technology, China;Department of Mathematics, University of Pannonia, Veszprém, Hungary;School of Software of Dalian University of Technology, China;School of Software of Dalian University of Technology, China;Department of Mathematics, University of Pannonia, Veszprém, Hungary

  • Venue:
  • FAW-AAIM'11 Proceedings of the 5th joint international frontiers in algorithmics, and 7th international conference on Algorithmic aspects in information and management
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we study a two-dimensional knapsack problem: packing squares as many as possible into a unit square. Our results are the following: (i) first, we propose an algorithm called IHS(Increasing Height Shelf), and prove that the packing is optimal if there are at most 5 squares packed in an optimal packing, and this upper bound 5 is sharp; (ii) secondly, if all the items have size(side length) at most 1/k, where k ≥ 1 is a constant number, we propose a simple algorithm with an approximation ratio k2+3k+2/k2/k2 in time O(n log n). (iii) finally, we give a PTAS for the general case, and our algorithm is much simpler than the previous approach[16].