arXiv:2609.00393cs.CGAug 2026

Manuscript Offprint

arXiv:2609.00393

A Dimension-Reducing Fréchet Simplification Oracle

Boris Aronov, Tsuri Farhana, Matthew J. Katz, Indu Ramesh

Abstract

Let PP be a polygonal curve with nn vertices in the plane. We construct a data structure of size O(nlog⁡n)O(n \log n) suited for simplification queries of the following kind. Given a query line ℓ\ell and an integer k≥1k \geq 1, find a curve QQ on ℓ\ell with at most kk vertices that minimizes the discrete Fréchet distance to PP, among all such curves. Using our data structure, a query can be handled in O(k2log⁡3n+klog⁡4n)O(k^2 \log^3 n + k \log^4 n) time.

More generally, a geometric tree TT on nn vertices in the plane can be preprocessed into a near-linear-size structure so that, given a pair u,vu, v of its vertices, a line ℓ\ell, and an integer k≥1k \geq 1, one can find a curve QQ on ℓ\ell with at most kk vertices that minimizes the discrete Fréchet distance to the path from uu to vv in TT, in time O(k2 polylog n)O(k^2 \text{ polylog } n).

For the general dimension-reduction problem, where PP is a curve in Rd\mathbb{R}^d (d≥3d \geq 3), 0<ε0<10 < \varepsilon_0 < 1 is a real parameter, and a query specifies a gg-flat hh (1≤g≤d−11 \leq g \leq d-1) and an integer k≥1k \geq 1, we construct a data structure of size O(nlog⁡n+f(ε0)n)O(n \log n + f(\varepsilon_0)n), where f(ε0)=(1+1/ε0)(d−1)/2f(\varepsilon_0) = (1 + 1/\varepsilon_0)^{(d-1)/2}, that allows us to find a curve QQ on hh with at most kk vertices, whose discrete Fréchet distance to PP is at most 1+ε01 + \varepsilon_0 times the distance of Q∗Q^* to PP, where Q∗Q^* is such a curve that minimizes the distance to PP. The query handling time is O(f(ε0)k2log⁡2n)O(f(\varepsilon_0)k^2 \log^2 n).

2012 ACM Subject Classification Theory of computation →\rightarrow Computational geometry

Keywords and phrases Computational geometry; discrete Fréchet distance; curve simplification oracle; restricted minimum enclosing disk queries

Funding Boris Aronov: Work partially supported by NSF Grant CCF-20-08551.

Matthew J. Katz: Work partially supported by Grant 2019715/CCF-20-08551 from the US-Israel Binational Science Foundation/US National Science Foundation.

Indu Ramesh: Work supported by NSF Grant CCF-20-08551.

1 Introduction

Curve simplification is an important and extensively studied problem in computational geometry and related fields. Here, we restrict our attention to curve simplification with the

  • A preliminary version of this paper appeared in the Proc. 36th International Symposium on Algorithms and Computation (ISAAC), 2025, 6:1–6:20.

A dimension-reducing Fréchet simplification oracle

quality of the simplification measured using the discrete Fréchet distance between the original curve and its simplification. See below for a comprehensive survey of research in this area.

In this paper, we introduce a novel class of curve simplification problems, in which the simplified curve is required to lie within a specified subspace or region. More formally, let PP be a polygonal curve in Rd\mathbb{R}^d. We are interested in problems where, in addition to standard parameters such as a threshold on the distance between PP and the desired simplification QQ or a bound on the length (i.e., number of vertices) of QQ, QQ must also reside in a designated subspace or region. Moreover, since it is often desirable to find the optimal simplification of PP for multiple subspaces or regions, we concentrate on the multi-shot formulation of these problems.

These questions can also be viewed as dimension-reduction problems. That is, we wish to replace an input dd-dimensional curve by a curve in some lower-dimensional space, while minimizing the Fréchet distance to the input curve.

Specifically, we focus on the following problem. Let PP be a polygonal curve in Rd\mathbb{R}^d. Preprocess PP into a compact data structure to efficiently support queries that specify a gg-flat1^1 hh (1≤g≤d−11 \leq g \leq d-1) and an integer k≥1k \geq 1, and seek a curve QQ on hh of length at most kk that minimizes the discrete Fréchet distance to PP. For d=2d=2, the gg-flat hh is simply a line ℓ\ell in the plane, and we present an efficient solution to the problem, as well as to the more general problem in which the input is a geometric tree TT rather than a curve PP. In the latter problem, a query also specifies the path in the tree to which the query applies. For d>2d>2, we present an efficient solution that provides approximate answers to queries, that is, given hh and kk, it returns a curve QQ on hh with at most kk-vertices which is approximately the best such curve on hh, in terms of its discrete Fréchet distance to PP.

Basic definitions. In this paper we view a finite sequence of points P=(p1,…,pn)P=(p_1,\ldots,p_n) in Rd\mathbb{R}^d as a polygonal curve; we refer to nn as the size or length of PP and the points as its vertices.

Let P=(p1,…,pn)P=(p_1,\ldots,p_n) and Q=(q1,…,qm)Q=(q_1,\ldots,q_m) be polygonal curves in Rd\mathbb{R}^d. A legal walk of PP and QQ (or just walk, for short) is a monotonically increasing sequence of pairs (r1,…,rl)(r_1,\ldots,r_l), where r1=(p1,q1)r_1=(p_1,q_1), rl=(pn,qm)r_l=(p_n,q_m), and, in general, when advancing from rk=(pi,qj)r_k=(p_i,q_j), rk+1r_{k+1} is one of the following: (pi+1,qj)(p_{i+1},q_j) (provided i<ni<n), (pi,qj+1)(p_i,q_{j+1}) (provided j<mj<m), or (pi+1,qj+1)(p_{i+1},q_{j+1}) (provided i<ni<n and j<mj<m). The cost of a walk is the maximum distance among the distances between the vertices of each pair rk=(pi,qj)r_k=(p_i,q_j) in the walk. The discrete Fréchet distance ddF(P,Q)d_{\mathrm{dF}}(P,Q) between PP and QQ is the cost of the minimum-cost walk of PP and QQ.

Given a gg-flat hh, 1≤g≤d−11\leq g\leq d-1, we say that QQ is a kk-vertex curve on hh if Q=(q1,…,qk)Q=(q_1,\ldots,q_k) is a sequence of kk points on hh. An at-most-kk-vertex curve on hh is a k′k'-vertex curve on hh with 1≤k′≤k1\leq k' \leq k.

Main problem statement. In this paper we study the following problem. Given a curve PP in Rd\mathbb{R}^d as above, preprocess it into a near-linear size data structure to efficiently support queries of the following type: “Given a gg-flat hh, 1≤g≤d−11\leq g\leq d-1, and integer k≥1k\geq 1, find an at-most-kk-vertex curve QQ on hh minimizing ddF(P,Q)d_{\mathrm{dF}}(P,Q).” We first focus on the planar version, where PP is a curve in the plane and queries are lines. See Figure 1 for an example.

We also consider the more general setting, still in the plane, where the input is a geometric tree TT rather than a curve PP, and the queries are of the form: “Given two nodes p,qp,q of the tree, a line ℓ\ell, and integer kk, find an at-most-kk-vertex curve QQ on ℓ\ell minimizing the discrete Fréchet distance between QQ and the path from pp to qq in TT.”

1^1 That is, a gg-dimensional flat—a gg-dimensional affine subspace of Rd\mathbb{R}^d.

Figure

Figure 1 A polygonal curve P=(p1,…,p6)P = (p_1, \ldots, p_6) and a query line ℓ\ell. In this example, k=3k=3 and Q=(q1,q2,q3)Q = (q_1, q_2, q_3) is the returned curve.

In other words, we first study problems in which we need to preprocess a given curve PP (or tree TT) in the plane, so that one can efficiently handle simplification queries with respect to a query line. The maximum length kk of the desired simplification is also a parameter of the query.

Next, we further generalize the problem so that a query may specify an arbitrary polygonal region in which QQ must reside; query time will of course depend on the complexity of the region.

Finally, we consider the problem in three and higher dimensions, where PP is a curve in Rd\mathbb{R}^d, d≥3d \geq 3, and queries are gg-flats, 1≤g≤d−11 \leq g \leq d-1. Since we are interested in a near-linear size data structure, we resort to approximate queries (see discussion in Section 6), with a prespecified error parameter ε0>0\varepsilon_0 > 0. That is, the answer to a query is an at-most-kk-vertex curve QQ on hh, such that ddF(P,Q)≤(1+ε0)ddF(P,Q∗)d_{\mathrm{dF}}(P, Q) \leq (1 + \varepsilon_0)d_{\mathrm{dF}}(P, Q^*), where Q∗Q^* is such a curve minimizing the distance to PP.

Our results. We present efficient solutions to these problems. Specifically, given PP or TT in the plane, we construct a data structure of size O(nlog⁡n)O(n \log n) that allows us to answer a query in O(k2 polylog n)O(k^2 \text{ polylog } n) time; refer to Theorem 7 in Section 3 and Theorem 9 in Section 4 for the exact statements. As an intermediate result, we present an algorithm for the corresponding decision problem (with respect to a curve PP or tree TT). For example, given a line ℓ\ell and distance rr, we can determine in O(klog⁡2n)O(k \log^2 n) time whether there exists an at-most-kk-vertex curve on ℓ\ell within discrete Fréchet distance at most rr from PP, and if so, return such a curve QQ with fewest vertices. In Section 5 we extend the data structure so that a query may specify a polygonal region in the plane that restricts the location of the curve QQ.

In higher dimensions, given PP in Rd\mathbb{R}^d and 0<ε0<10 < \varepsilon_0 < 1, we construct a data structure of size O(nlog⁡n+nε(d−1)/2)O(n \log n + \frac{n}{\varepsilon^{(d-1)/2}}), where ε=ε01+ε0\varepsilon = \frac{\varepsilon_0}{1+\varepsilon_0}, that allows us to answer a query approximately in O(k2log⁡2nε(d−1)/2)O\left(\frac{k^2 \log^2 n}{\varepsilon^{(d-1)/2}}\right) time, that is, the discrete Fréchet distance between PP and the curve that we return is at most 1+ε01 + \varepsilon_0 times the distance between PP and the optimal curve; refer to Theorem 13 in Section 6 for the exact statement. Our solution uses coresets.

Related work on curve simplification. We focus here on (global) simplification under the Fréchet distance in the plane, where the quality of a simplification is the Fréchet distance between the original curve PP and its simplification QQ.

There are two main versions of the simplification problem. In the first, we are given a threshold δ\delta and the goal is to compute a curve QQ of minimum length, such that the distance

A dimension-reducing Fréchet simplification oracle

between PP and QQ is at most δ\delta. In the second, we are given an integer k≥1k \geq 1 and the goal is to compute a curve QQ of length at most kk that minimizes the distance to PP. Moreover, each of the two main versions gives rise to four standard variants, depending on whether we are using the continuous or discrete Fréchet distance, and whether QQ is restricted (i.e., a subsequence of PP) or unrestricted (i.e., any sequence of points); Van de Kerkhof et al. [18] also consider an intermediate curve-restricted option.

The following results are for the first version under the continuous Fréchet distance. Bringmann and Chaudhury [7] presented an algorithm with running time O(n3)O(n^3) for restricted simplification and established a conditional cubic lower bound. An algorithm with the same running time was also proposed by Van de Kerkhof et al. [18] (see also Van Kreveld et al. [19]). For unrestricted simplification, Guibas et al. [12] provide an algorithm with running time O(n2log⁡2n)O(n^2 \log^2 n), and Agarwal et al. [2] provide an O(nlog⁡n)O(n \log n) algorithm, which returns a simplification Q′Q' of length at most the length of an optimal simplification with threshold δ/8\delta/8. The latter two statements can be deduced from the corresponding papers, as observed by Van de Kerkhof et al. [18].

Bereg et al. [4] studied both restricted and unrestricted simplification for each of the two main versions, under the discrete Fréchet distance in three-dimensional space. For the first version, they compute an optimal unrestricted simplification in O(nlog⁡n)O(n \log n) time and an optimal restricted simplification in O(n2)O(n^2) time. For the second version, they compute an optimal unrestricted simplification in O(knlog⁡nlog⁡(n/k))O(kn \log n \log(n/k)) time, where kk is the length of the computed simplification, and an optimal restricted simplification in O(n3)O(n^3) time. Also under the discrete Fréchet distance, Fan et al. [10] considered the so called chain-pair simplification problem in the plane, where the goal is to simultaneously compute restricted simplifications of length kk for two input curves, such that the distance between the simplifications themselves is also below some threshold.

Finally, under the continuous Fréchet distance, Driemel and Har-Peled [8] presented a near-linear time algorithm that computes a permutation of the vertices of PP, such that any prefix of 2k−12k-1 vertices of this permutation is an approximation (up to a constant factor) of PP compared to any polygonal curve with kk vertices. Subsequently, Filtser [11] slightly improved the approximation factor under the discrete Fréchet distance.

More related work. A series of papers [16, 15, 5] culminates in an algorithm that preprocesses an nn-point set SS in the plane in linear space and O(nlog⁡n)O(n \log n) time to support O(log⁡n)O(\log n) time queries of the form “What is the smallest circle centered on the query line and enclosing SS?”

There is also a substantial amount of work on so-called range-aggregate queries. Given an nn-point set SS in the plane, we want to preprocess it for queries of the following type: compute some aggregate quantity about the points of SS contained in an axis-aligned query rectangle. While range counting, reporting, and more general semigroup queries have been widely studied [1], some types of queries are not readily decomposable (in the sense of the answer being easily synthesized from the answer for smaller queries). For example, Brass et al. [6] discuss computing the area (or perimeter) of the convex hull, width, and smallest enclosing disk of the points of SS in the query rectangle. They describe algorithms for preprocessing SS into a data structure of near-linear size with polylogarithmic-time queries, for all of the above queries except for the width; the width data structure is more expensive. Gupta et al. [13] explore several variants of closest-pair-in-range problems. For example, they show a near-linear-space structure for computing the closest pair of points within the query rectangle in two dimensions with polylogarithmic query time. Our observation in Remark 4 is a further generalization in this direction: Given a point set in the plane, we can preprocess it so that, given a query rectangle and a query line, we can determine the smallest enclosing circle of the points in the rectangle, among all circles centered on the line.

Overview and organization. We first consider the planar version of the dimension-reduction problem. To answer a decision query of the form “given a line ℓ\ell, an integer kk, and a distance r>0r > 0, determine whether there exists an at-most-kk-vertex curve on ℓ\ell within Fréchet distance at most rr from PP,” we need to repeatedly perform the primitive operation prefixℓ(P[i,n],r)\text{prefix}_{\ell}(P[i,n],r) for different values of ii: Find the longest (contiguous) subcurve of PP, beginning at pip_i, that fits into a disk of radius rr centered at a point of ℓ\ell. In Section 2, we describe our data structure for the planar version and then use it to implement prefixℓ(P[i,n],r)\text{prefix}_{\ell}(P[i,n],r) in O(log⁡2n)O(\log^2 n) time. Our data structure is obtained by combining known data structures in a non-trivial manner. In Section 3, we obtain our first main result, i.e., the solution for the planar version of the dimension-reduction problem. Using the data structure and primitive operations developed in Section 2, we present efficient algorithms for handling both decision queries and ‘regular’ queries, where the algorithm for regular queries is based on the one for decision queries and on the primitive operation radiusℓ(P[i,j])\text{radius}_{\ell}(P[i,j]) (developed in Section 2) which, given a (contiguous) subcurve of PP, returns the radius of the smallest disk centered at a point of ℓ\ell that contains the subcurve. In Section 6, we obtain our second main result, i.e., the solution for the dd-dimensional version, d≥3d \geq 3, of the dimension-reduction problem. The algorithms in this general version are similar to those in the planar version, however, we need to replace the exact primitive operations above by their approximate dd-dimensional counterparts. These latter operations are implemented using coresets. Finally, in Sections 4 and 5, we extend our result for the planar version in two directions. In Section 4, the input is a geometric tree TT (rather than a curve PP), and queries specify, in addition to ℓ\ell and kk, a path in TT, by providing its start and end vertices. In Section 5, queries specify a polygonal region rather than a line ℓ\ell, to contain the simplified curve.