Minimizing Corners in Colored Rectilinear Grids
arXiv:2311.14134
Abstract
Given a rectilinear grid , in which cells are either assigned a single color, out of possible colors, or remain white, can we color white grid cells of to minimize the total number of corners of the resulting colored rectilinear polygons in ? We show how this problem relates to hypergraph visualization, prove that it is NP-hard even for , and present an exact dynamic programming algorithm. Together with a set of simple kernelization rules, this leads to an FPT-algorithm in the number of colored cells of the input. We additionally provide an XP-algorithm in the solution size, and a polynomial -approximation algorithm.
Appears in the Proceedings of the 18th International Conference and Workshops on Algorithms and Computation (WALCOM 2024)