Tiling with Squares and Packing Dominos in Polynomial Time

We consider planar tiling and packing problems with polyomino pieces and a polyomino container $P$. A polyomino is a polygonal region with axis parallel edges and corners of integral coordinates, which may have holes. We give two polynomial time algorithms, one for deciding if $P$ can be tiled with $2\times 2$ squares (that is, deciding if $P$ is the union of a set of non-overlapping copies of the $2\times 2$ square) and one for packing $P$ with a maximum number of non-overlapping and axis-parallel $2\times 1$ dominos, allowing rotations of $90^\circ$. As packing is more general than tiling, the latter algorithm can also be used to decide if $P$ can be tiled by $2\times 1$ dominos. These are classical problems with important applications in VLSI design, and the related problem of finding a maximum packing of $2\times 2$ squares is known to be NP-Hard [J.~Algorithms 1990]. For our three problems there are known pseudo-polynomial time algorithms, that is, algorithms with running times polynomial in the \emph{area} of $P$. However, the standard, compact way to represent a polygon is by listing the coordinates of the corners in binary. We use this representation, and thus present the first polynomial time algorithms for the problems. Concretely, we give a simple $O(n\log n)$ algorithm for tiling with squares, and a more involved $O(n^4)$ algorithm for packing and tiling with dominos.

[1]  Wolfgang Maass,et al.  Approximation schemes for covering and packing problems in image processing and VLSI , 1985, JACM.

[2]  Jonàs Martínez,et al.  Skeleton Computation of an Image Using a Geometric Approach , 2010, Eurographics.

[3]  Eric Rémila Tiling a Polygon with Two Kinds of Rectangles , 2004, ESA.

[4]  Jeffrey C. Lagarias,et al.  Tiling with polyominoes and combinatorial group theory , 1990, J. Comb. Theory, Ser. A.

[5]  Igor Pak,et al.  Tiling simply connected regions with rectangles , 2013, J. Comb. Theory, Ser. A.

[6]  S. W. Golomb,et al.  Checker Boards and Polyominoes , 1954 .

[7]  Gábor Lukács,et al.  Pocket machining based on contour-parallel tool paths generated by means of proximity maps , 1994, Comput. Aided Des..

[8]  Chen-Fu Chien,et al.  A cutting algorithm for optimizing the wafer exposure pattern , 2001 .

[9]  John Iacono,et al.  Packing 2×2 unit squares into grid polygons is NP-complete , 2009, CCCG.

[10]  W. Thurston Conway's tiling groups , 1990 .

[11]  Francine Berman,et al.  Optimal Tile Salvage. , 1981 .

[12]  Jong-Seong Kim,et al.  A Wafer Map Yield Prediction Based on Machine Learning for Productivity Enhancement , 2019, IEEE Transactions on Semiconductor Manufacturing.

[13]  D.K. de Vries,et al.  Investigation of gross die per wafer formulas , 2005, IEEE Transactions on Semiconductor Manufacturing.

[14]  Robert J. Fowler,et al.  Optimal Packing and Covering in the Plane are NP-Complete , 1981, Inf. Process. Lett..

[15]  Danièle Beauquier,et al.  Tiling Figures of the Plane with Two Bars , 1995, Comput. Geom..

[16]  Claire Mathieu,et al.  Tiling a polygon with rectangles , 1992, Proceedings., 33rd Annual Symposium on Foundations of Computer Science.

[17]  Robert L. Berger The undecidability of the domino problem , 1966 .

[18]  A. Olbrich,et al.  Maximization of Good Chips Per Wafer by Optimization of Memory Redundancy , 2007, IEEE Transactions on Semiconductor Manufacturing.

[19]  Francine Berman,et al.  Generalized Planar Matching , 1990, J. Algorithms.