English

How to Get Close to the Median Shape

Computational Geometry 2026-01-21 v1

Abstract

\renewcommand{\Re}{\mathbb{R}}\newcommand{\eps}{{\varepsilon}}\newcommand{\poly}{\mathrm{poly}} In this paper, we study the problem of L1L_1-fitting a shape to a set of nn points in d\Re^d (where dd is a fixed constant), where the target is to minimize the sum of distances of the points to the shape, or the sum of squared distances. We present a general technique for computing a (1+\eps)(1 + \eps ) -approximation for such a problem, with running time O(n+\poly(logn,1/\eps))O(n + \poly( \log n, 1/\eps)), where \poly(logn,1/\eps)\poly(\log n, 1/\eps) is a polynomial of constant degree of logn\log n and 1/\eps1/\eps (the power of the polynomial is a function of dd). The new algorithm runs in linear time for a fixed \eps>0\eps>0, and is the first subquadratic algorithm for this problem. Applications of the algorithm include best fitting either a circle, a sphere, or a cylinder to a set of points when minimizing the sum of distances (or squared distances) to the respective shape.

Keywords

Cite

@article{arxiv.2601.12529,
  title  = {How to Get Close to the Median Shape},
  author = {Sariel Har-Peled},
  journal= {arXiv preprint arXiv:2601.12529},
  year   = {2026}
}
R2 v1 2026-07-01T09:09:41.788Z