English

Polyline Simplification has Cubic Complexity

Computational Geometry 2025-09-15 v2 Data Structures and Algorithms

Abstract

In the classic polyline simplification problem we want to replace a given polygonal curve PP, consisting of nn vertices, by a subsequence PP' of kk vertices from PP such that the polygonal curves PP and PP' are as close as possible. Closeness is usually measured using the Hausdorff or Fr\'echet distance. These distance measures can be applied "globally", i.e., to the whole curves PP and PP', or "locally", i.e., to each simplified subcurve and the line segment that it was replaced with separately (and then taking the maximum). This gives rise to four problem variants: Global-Hausdorff (known to be NP-hard), Local-Hausdorff (in time O(n3)O(n^3)), Global-Fr\'echet (in time O(kn5)O(k n^5)), and Local-Fr\'echet (in time O(n3)O(n^3)). Our contribution is as follows. - Cubic time for all variants: For Global-Fr\'echet we design an algorithm running in time O(n3)O(n^3). This shows that all three problems (Local-Hausdorff, Local-Fr\'echet, and Global-Fr\'echet) can be solved in cubic time. All these algorithms work over a general metric space such as (Rd,Lp)(\mathbb{R}^d,L_p), but the hidden constant depends on pp and (linearly) on dd. - Cubic conditional lower bound: We provide evidence that in high dimensions cubic time is essentially optimal for all three problems (Local-Hausdorff, Local-Fr\'echet, and Global-Fr\'echet). Specifically, improving the cubic time to O(n3ϵpoly(d))O(n^{3-\epsilon} \textrm{poly}(d)) for polyline simplification over (Rd,Lp)(\mathbb{R}^d,L_p) for p=1p = 1 would violate plausible conjectures. We obtain similar results for all p[1,),p2p \in [1,\infty), p \ne 2. In total, in high dimensions and over general LpL_p-norms we resolve the complexity of polyline simplification with respect to Local-Hausdorff, Local-Fr\'echet, and Global-Fr\'echet, by providing new algorithms and conditional lower bounds.

Keywords

Cite

@article{arxiv.1810.00621,
  title  = {Polyline Simplification has Cubic Complexity},
  author = {Karl Bringmann and Bhaskar Ray Chaudhury},
  journal= {arXiv preprint arXiv:1810.00621},
  year   = {2025}
}

Comments

26 pages, v2: fixed a typo in Section 4.3.2