How to Get Close to the Median Shape
Computational Geometry
2026-01-21 v1
Abstract
In this paper, we study the problem of -fitting a shape to a set of points in (where 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 -approximation for such a problem, with running time , where is a polynomial of constant degree of and (the power of the polynomial is a function of ). The new algorithm runs in linear time for a fixed , 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.
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}
}