We consider online packing problems where we get a stream of axis-parallel rectangles. The rectangles have to be placed in the plane without overlapping, and each rectangle must be placed without knowing the subsequent rectangles. The goal is to minimize the perimeter or the area of the axis-parallel bounding box of the rectangles. We either allow rotations by 90 degrees or translations only. For the perimeter version we give algorithms with an absolute competitive ratio slightly less than 4 when only translations are allowed and when rotations are also allowed. We then turn our attention to minimizing the area and show that the asymptotic competitive ratio of any algorithm is at least $\Omega(\sqrt{n})$, where $n$ is the number of rectangles in the stream, and this holds with and without rotations. We then present algorithms that match this bound in both cases. We also show that the competitive ratio cannot be bounded as a function of OPT. We then consider two special cases. The first is when all the given rectangles have aspect ratios bounded by some constant. The particular variant where all the rectangles are squares and we want to minimize the area of the bounding square has been studied before and an algorithm with a competitive ratio of 8 has been given [Fekete and Hoffmann, Algorithmica, 2017]. We improve the analysis of the algorithm and show that the ratio is at most 6, which is tight. The second special case is when all edges have length at least 1. Here, the $\Omega(\sqrt n)$ lower bound still holds, and we turn our attention to lower bounds depending on OPT. We show that any algorithm has an asymptotic competitive ratio of at least $\Omega(\sqrt{OPT})$ for the translational case and $\Omega(\sqrt[4]{OPT})$ when rotations are allowed. For both versions, we give algorithms that match the respective lower bounds.
翻译:我们考虑在线包装问题, 当我们得到一个轴- parelel 矩形流时, 矩形必须放置在平面上, 而不是重叠。 矩形必须放置在不知晓其后矩形的情况下。 目标是将矩形轴- 平行框的周界或区域最小化。 我们要么允许旋转90度, 要么只允许旋转。 对于周边版本, 我们给出绝对竞争性比略小于4。 当只允许翻译, 也允许旋转时, 我们给出的算法略小于4 。 然后我们把注意力转向最小化区域, 并显示任何算法的偏移比在最小化区域里, 任何变数在最小化的Oright 比率上至少是 $\\\\\\\\\ sqrt{n} 。 $nqolgralbral 框里, 当我们所给定的矩形变数比在最小化区域里, 当我们所给定的变数和变数都显示时, 我们的变数是最小化区域。