Fedor V. Fomin, Petr A. Golovach, Tanmay Inamdar, Saket Saurabh, Meirav Zehavi
{"title":"(Re)packing Equal Disks into Rectangle","authors":"Fedor V. Fomin, Petr A. Golovach, Tanmay Inamdar, Saket Saurabh, Meirav Zehavi","doi":"10.1007/s00454-024-00633-1","DOIUrl":null,"url":null,"abstract":"<p>The problem of packing of equal disks (or circles) into a rectangle is a fundamental geometric problem. (By a packing here we mean an arrangement of disks in a rectangle without overlapping.) We consider the following algorithmic generalization of the equal disk packing problem. In this problem, for a given packing of equal disks into a rectangle, the question is whether by changing positions of a small number of disks, we can allocate space for packing more disks. More formally, in the repacking problem, for a given set of <i>n</i> equal disks packed into a rectangle and integers <i>k</i> and <i>h</i>, we ask whether it is possible by changing positions of at most <i>h</i> disks to pack <span>\\(n+k\\)</span> disks. Thus the problem of packing equal disks is the special case of our problem with <span>\\(n=h=0\\)</span>. While the computational complexity of packing equal disks into a rectangle remains open, we prove that the repacking problem is NP-hard already for <span>\\(h=0\\)</span>. Our main algorithmic contribution is an algorithm that solves the repacking problem in time <span>\\((h+k)^{\\mathcal {O}(h+k)}\\cdot |I|^{\\mathcal {O}(1)}\\)</span>, where |<i>I</i>| is the input size. That is, the problem is fixed-parameter tractable parameterized by <i>k</i> and <i>h</i>.</p>","PeriodicalId":0,"journal":{"name":"","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2024-03-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"","FirstCategoryId":"100","ListUrlMain":"https://doi.org/10.1007/s00454-024-00633-1","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
The problem of packing of equal disks (or circles) into a rectangle is a fundamental geometric problem. (By a packing here we mean an arrangement of disks in a rectangle without overlapping.) We consider the following algorithmic generalization of the equal disk packing problem. In this problem, for a given packing of equal disks into a rectangle, the question is whether by changing positions of a small number of disks, we can allocate space for packing more disks. More formally, in the repacking problem, for a given set of n equal disks packed into a rectangle and integers k and h, we ask whether it is possible by changing positions of at most h disks to pack \(n+k\) disks. Thus the problem of packing equal disks is the special case of our problem with \(n=h=0\). While the computational complexity of packing equal disks into a rectangle remains open, we prove that the repacking problem is NP-hard already for \(h=0\). Our main algorithmic contribution is an algorithm that solves the repacking problem in time \((h+k)^{\mathcal {O}(h+k)}\cdot |I|^{\mathcal {O}(1)}\), where |I| is the input size. That is, the problem is fixed-parameter tractable parameterized by k and h.
将相等的圆盘(或圆)填入矩形是一个基本的几何问题。(这里所说的打包是指在矩形中不重叠地排列圆盘)。我们考虑对等圆盘堆积问题进行以下算法推广。在这个问题中,对于给定的矩形等盘堆积,问题是通过改变少量磁盘的位置,我们是否能分配出更多的空间来堆积更多的磁盘。更正式地说,在重新打包问题中,对于给定的一组打包成矩形的 n 个相等的磁盘以及整数 k 和 h,我们要问的是,是否可以通过改变最多 h 个磁盘的位置来打包 (n+k\)个磁盘。因此,打包相等磁盘的问题是我们的问题的特例(n=h=0)。虽然把相等的磁盘打包成矩形的计算复杂度还没有定论,但我们证明了重新打包问题对于 \(h=0\) 来说已经是 NP-hard了。我们在算法上的主要贡献是在 \((h+k)^{\mathcal {O}(h+k)}\cdot |I|^{\mathcal {O}(1)}\) 时间内解决重新打包问题的算法,其中 |I| 是输入大小。也就是说,以 k 和 h 为参数,问题是固定参数可控的。