English

Approximating the discrete and continuous median line segments in $d$ dimensions

Computational Geometry 2022-02-16 v2

Abstract

Consider a set PP of nn points in Rd\mathbb{R}^d. In the discrete median line segment problem, the objective is to find a line segment bounded by a pair of points in PP such that the sum of the Euclidean distances from PP to the line segment is minimized. In the continuous median line segment problem, a real number >0\ell>0 is given, and the goal is to locate a line segment of length \ell in Rd\mathbb{R}^d such that the sum of the Euclidean distances between PP and the line segment is minimized. We show how to compute (1+ϵΔ)(1+\epsilon\Delta)- and (1+ϵ)(1+\epsilon)-approximations to a discrete median line segment in time O(nϵ2dlogn)O(n\epsilon^{-2d}\log n) and O(n2ϵd)O(n^2\epsilon^{-d}), respectively, where Δ\Delta is the spread of line segments spanned by pairs of points. While developing our algorithms, by using the principle of pair decomposition, we derive new data structures that allow us to quickly approximate the sum of the distances from a set of points to a given line segment or point. To our knowledge, our utilization of pair decompositions for solving minsum facility location problems is the first of its kind; it is versatile and easily implementable. We prove that it is impossible to construct a continuous median line segment for n3n\geq3 non-collinear points in the plane by using only ruler and compass. In view of this, we present an O(ndϵd)O(n^d\epsilon^{-d})-time algorithm for approximating a continuous median line segment in Rd\mathbb{R}^d within a factor of 1+ϵ1+\epsilon. The algorithm is based upon generalizing the point-segment pair decomposition from the discrete to the continuous domain. Last but not least, we give an (1+ϵ)(1+\epsilon)-approximation algorithm, whose time complexity is sub-quadratic in nn, for solving the constrained median line segment problem in R2\mathbb{R}^2 where an endpoint or the slope of the median line segment is given at input.

Keywords

Cite

@article{arxiv.2201.08900,
  title  = {Approximating the discrete and continuous median line segments in $d$ dimensions},
  author = {Ovidiu Daescu and Ka Yaw Teo},
  journal= {arXiv preprint arXiv:2201.08900},
  year   = {2022}
}

Comments

There is an error in the packing argument used to determine the number of well separated pairs/subsets. The error first appears in the proof in Appendix C -- on page 17, in the first mathematical expression, the term $||ab||$ should be $||ab||/E[x]$

R2 v1 2026-06-24T08:58:13.182Z