English

Optimal Discretization is Fixed-parameter Tractable

Data Structures and Algorithms 2026-03-16 v3 Computational Geometry Discrete Mathematics

Abstract

Given two disjoint sets W1W_1 and W2W_2 of points in the plane, the Optimal Discretization problem asks for the minimum size of a family of horizontal and vertical lines that separate W1W_1 from W2W_2, that is, in every region into which the lines partition the plane there are either only points of W1W_1, or only points of W2W_2, or the region is empty. Equivalently, Optimal Discretization can be phrased as a task of discretizing continuous variables: we would like to discretize the range of xx-coordinates and the range of yy-coordinates into as few segments as possible, maintaining that no pair of points from W1×W2W_1 \times W_2 are projected onto the same pair of segments under this discretization. We provide a fixed-parameter algorithm for the problem, parameterized by the number of lines in the solution. Our algorithm works in time 2O(k2logk)nO(1)2^{O(k^2 \log k)} n^{O(1)}, where kk is the bound on the number of lines to find and nn is the number of points in the input. Our result answers in positive a question of Bonnet, Giannopolous, and Lampis [IPEC 2017] and of Froese (PhD thesis, 2018) and is in contrast with the known intractability of two closely related generalizations: the Rectangle Stabbing problem and the generalization in which the selected lines are not required to be axis-parallel.

Keywords

Cite

@article{arxiv.2003.02475,
  title  = {Optimal Discretization is Fixed-parameter Tractable},
  author = {Stefan Kratsch and Tomáš Masařík and Irene Muzi and Marcin Pilipczuk and Manuel Sorge},
  journal= {arXiv preprint arXiv:2003.02475},
  year   = {2026}
}

Comments

Accepted to ACM-SIAM Symposium on Discrete Algorithms (SODA 2021). 53 pages, 18 figures

R2 v1 2026-06-23T14:04:39.522Z