English

Line Cover and Related Problems

Computational Geometry 2026-03-26 v2 Data Structures and Algorithms

Abstract

We study extensions of the classic \emph{Line Cover} problem, which asks whether a set of nn points in the plane can be covered using kk lines. Line Cover is known to be NP-hard, and we focus on two natural generalizations. The first is \textbf{Line Clustering}, where the goal is to find kk lines minimizing the sum of squared distances from the input points to their nearest line. The second is \textbf{Hyperplane Cover}, which asks whether nn points in Rd\mathbb{R}^d can be covered by kk hyperplanes. We also study the more general \textbf{Projective Clustering} problem, which unifies both settings and has applications in machine learning, data analysis, and computational geometry. In this problem, one seeks kk affine subspaces of dimension rr that minimize the sum of squared distances from the given points in Rd\mathbb{R}^d to the nearest subspace. Our results reveal notable differences in the parameterized complexity of these problems. While Line Cover is fixed-parameter tractable when parameterized by kk, we show that Line Clustering is W[1]-hard with respect to kk and does not admit an algorithm with running time no(k)n^{o(k)} unless the Exponential Time Hypothesis fails. Hyperplane Cover has been known to be NP-hard since the 1980s, following work of Megiddo and Tamir, even for d=2d=2, we show that it remains NP-hard even when k=2k=2. Finally, we present an algorithm for Projective Clustering running in nO(dk(r+1))n^{O(dk(r+1))} time. This bound matches our lower bound for Line Clustering and generalizes the classic algorithm for kk-Means Clustering (r=0r=0) by Inaba, Katoh, and Imai [SoCG 1994].

Keywords

Cite

@article{arxiv.2512.17268,
  title  = {Line Cover and Related Problems},
  author = {Matthias Bentert and Fedor v. Fomin and Petr A. Golovach and Souvik Saha and Sanjay Seetharaman and Kirill Simonov and Anannya Upasana},
  journal= {arXiv preprint arXiv:2512.17268},
  year   = {2026}
}

Comments

Accepted to STACS 2026

R2 v1 2026-07-01T08:32:53.611Z