English

On $k$-means for segments and polylines

Computational Geometry 2023-05-19 v1

Abstract

We study the problem of kk-means clustering in the space of straight-line segments in R2\mathbb{R}^{2} under the Hausdorff distance. For this problem, we give a (1+ϵ)(1+\epsilon)-approximation algorithm that, for an input of nn segments, for any fixed kk, and with constant success probability, runs in time O(n+ϵO(k)+ϵO(k)logO(k)(ϵ1))O(n+ \epsilon^{-O(k)} + \epsilon^{-O(k)}\cdot \log^{O(k)} (\epsilon^{-1})). The algorithm has two main ingredients. Firstly, we express the kk-means objective in our metric space as a sum of algebraic functions and use the optimization technique of Vigneron~\cite{Vigneron14} to approximate its minimum. Secondly, we reduce the input size by computing a small size coreset using the sensitivity-based sampling framework by Feldman and Langberg~\cite{Feldman11, Feldman2020}. Our results can be extended to polylines of constant complexity with a running time of O(n+ϵO(k))O(n+ \epsilon^{-O(k)}).

Keywords

Cite

@article{arxiv.2305.10922,
  title  = {On $k$-means for segments and polylines},
  author = {Sergio Cabello and Panos Giannopoulos},
  journal= {arXiv preprint arXiv:2305.10922},
  year   = {2023}
}

Comments

18 pages, 3 figures

R2 v1 2026-06-28T10:38:10.303Z