2D knapsack: Packing squares

Yan Lan, György Dósa, Xin Han, Chenyang Zhou, Attila Benko

Research output: Contribution to journalArticle

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: we propose an algorithm called IHS (Increasing Height Shelf), and prove that the packing is optimal if in an optimal packing there are at most 5 squares, and this upper bound is sharp;if all the squares have side length at most 1k, we propose a simple and fast algorithm with an approximation ratio k2+3k+2k2 in time O(nlogn);we give an EPTAS for the problem, where the previous result in Jansen and Solis-Oba (2008) [16] is a PTAS, not an EPTAS. However our approach does not work on the previous model of Jansen and Solis-Oba (2008) [16], where each square has an arbitrary weight.

Original languageEnglish
Pages (from-to)35-40
Number of pages6
JournalTheoretical Computer Science
Volume508
DOIs
Publication statusPublished - Oct 14 2013

    Fingerprint

ASJC Scopus subject areas

  • Theoretical Computer Science
  • Computer Science(all)

Cite this