Manuscript Offprint
arXiv:2611.00240Constant Approximation of Fréchet Distance in Near-Linear Time
Abstract
We present a deterministic algorithm that approximates the Fréchet distance between two polygonal curves in with and vertices within a constant factor in time, for any fixed and any fixed dimension . The approximation factor depends only on and , no assumption on the input curves is needed, and the algorithm also reports a matching that attains the returned value. The same result holds for the discrete Fréchet distance. Our result extends the line of work initiated in [CHZ25], which gave the first constant-factor approximation in strongly subquadratic time, to near-linear time. For two -vertex curves, the best previous running time for a constant-factor approximation was [vdHO26].
Our algorithm bootstraps between two primitives: a data structure that preprocesses a single curve for comparing any two of its subcurves, that is, contiguous portions of the curve, and a query procedure that compares subcurves of two different curves. Given the data structure for one curve, we compare it with another curve by replacing the latter with a surrogate assembled from a few subcurves of the former, chosen so that one surrogate serves all possible starting points of a matching. Conversely, faster queries make the next data structure cheaper to build. After a number of rounds that depends only on , both preprocessing and query time are . To make the output of each round reusable by the next, we compactly summarize how matchings can enter and leave a pair of subcurves. The summary can be reused for different starting points and retains the information needed to report the matchings.
*Email: huanghaoqiang@huawei.com. †Renmin University of China, Beijing, China. Email: wang.zihe@ruc.edu.cn. ‡Renmin University of China, Beijing, China. Email: zhangshuo1422@ruc.edu.cn.
Contents
1 Introduction 1
1.1 Our results 2
1.2 Organization 3
2 Preliminaries 3
3 Technical overview 6
3.1 Where the speedup comes from 7
3.2 Shared surrogates and faster queries 8
3.3 Building the next index 10
3.4 Boundary summaries and continuous profiles 11
4 The algorithm 13
4.1 Boundary maps and indexes 13
4.2 The inner recursion 14
4.3 The outer recursion 15
4.4 The schedule and the overall procedure 15
4.5 Deciding and approximating the distance 16
5 Boundary maps 17
5.1 Finite summaries 18
5.2 From ports to continuous boundaries 20
5.3 Applying a boundary map to label profiles 21
5.4 Networks of rectangles 23
5.5 The exact base 24
6 The inner recursion: proof of Theorem 4.4 24
6.1 The cursor search 25
6.2 The surrogate and the transfer of right outputs 27
6.3 Proof of Theorem 4.4 28
7 The outer recursion: constructing indexes 29
7.1 Compiling a routine 30
7.2 The base index 30
7.3 The index upgrade 31
8 The parameters and the proof of the main theorem 33
8.1 Choosing the parameters 33
8.2 Proof of Theorem 1.1 34
9 Conclusion 35
AI methodology 35
A From decision to approximation 35
B The discrete Fréchet distance 37
C Further related work 38
References 40
ii
Let and be polygonal curves in with and vertices, where and is fixed. Both distances can be computed in roughly quadratic time. Alt and Godau [AG95] computed the continuous Fréchet distance in time using a geometric reachability formulation, and Eiter and Mannila [EM94] computed the discrete one in time by dynamic programming. Subsequent work has shaved logarithmic factors [ABAKS13, BBMM14, CH25, CH26], and for one-dimensional curves of very different sizes, time is possible [BD24]. A complementary line of work established conditional lower bounds. Bringmann [Bri14] showed that, assuming the Strong Exponential Time Hypothesis (SETH) [IP01], neither version can be computed in time for any constant , and Bringmann and Mulzer [BM16] proved the same for the discrete version already in one dimension. Buchin, Ophelders, and Speckmann [BOS19] showed that this remains true for approximation within any factor less than 3, already for one-dimensional curves with the same number of vertices, and Blank [Bla26] recently extended lower bounds of this type to curves of different sizes.
Table 1 summarizes approximation bounds. Driemel, Har-Peled, and Wenk [DHPW12] gave a -approximation in near-linear time for -packed curves, whose length inside any ball of radius is at most . Bringmann and Künnemann [BK17] improved its dependence on to match a conditional lower bound, and linear time for fixed and was recently achieved [BDHPR26]. For arbitrary curves, a series of -approximations traded accuracy for speed [BM16, CR18, CF21, vdHvKOS23, vdHO24, vdHvKOS25]. In all of them, strongly subquadratic running time requires a polynomial approximation factor. Cheng, Huang, and Zhang [CHZ25] gave the first constant-factor approximation in strongly subquadratic time, namely a randomized -approximation for both versions that runs in time and succeeds with high probability. Subsequently, Liu and Wang [LW26] improved the factor to and also the running time. Van der Horst and Ophelders [vdHO26] obtained a deterministic -approximation in time, which nearly matches the conditional lower bound of 3, and Blank [Bla26] gave a -approximation in time, which is near-linear when . Further related work and connections to our techniques are discussed in Appendix C.
Despite this progress, the best previous running time for a constant-factor approximation on two -vertex curves was [vdHO26]. This raises the following question.
By allowing a constant approximation factor, can one bypass the quadratic barrier almost completely, that is, achieve running time for every fixed ?
For edit distance, another alignment problem with a classical quadratic-time dynamic program, the analogous question has a positive answer. Chakraborty, Das, Goldenberg, Koucký, and
In October 2026, a claimed refutation of the Exponential Time Hypothesis was released for independent verification [Ope26]. If confirmed, it would also refute SETH. The lower bounds discussed here are obtained by reductions from the Orthogonal Vectors problem [Bri14, BM16, BOS19, Bla26], so they also hold under the Orthogonal Vectors Hypothesis (OVH). SETH implies OVH [Wil05], but a refutation of SETH alone would not refute OVH.
| Setting | Solution | Running time | Reference |
|---|---|---|---|
| Exact | [God91] | ||
| Exact | [EM94] | ||
| Exact | [AG95] | ||
| Exact (WR) | [ABAKS13] | ||
| Exact (PM) | [BBMM14] | ||
| Exact (WR) | [BBMM14] | ||
| Exact | [BD24] | ||
| Exact | [CH25] | ||
| Exact | [CH26] | ||
| Exact | [CH26] | ||
| -approx. | [BM16] | ||
| -approx. | [CR18] | ||
| -approx. | [CF21] | ||
| -approx. | [vdHvKOS23] | ||
| -approx. | [vdHO24] | ||
| -approx. | [vdHvKOS25] | ||
| -approx. | [CHZ25] | ||
| -approx. | [LW26] | ||
| -approx. | [LW26] | ||
| -approx. | [Bla26] | ||
| -approx. | [vdHO26] | ||
| -approx. | Theorem 1.1 |
Table 1: Exact and approximation algorithms for arbitrary curves, with . Unless a dimension is specified, is any fixed constant. Stars denote expected time bounds, and daggers mark randomized algorithms that are correct with high probability. PM and WR denote pointer machines and word RAMs, and is as in [CH25]. The trade-offs use , except in [CR18] and in [CF21], and [vdHvKOS25] is the corrected journal version of [vdHvKOS23, vdHO24]. The parameters are fixed independently of the input size.
Saks [CDG 18] gave the first constant-factor approximation of edit distance in truly subquadratic time, and Andoni and Shekel Nosatzki [AN20] subsequently obtained a constant-factor approximation in time for every fixed .
1.1 Our results
We show that the answer to the question above is positive, for both the continuous and the discrete Fréchet distance. For every fixed , our algorithm runs in time and approximates the distance within a factor that depends only on and on the dimension. In other words, every running-time exponent above one can be achieved with a constant approximation factor, and no assumption on the input curves is needed. The algorithm builds, and repeatedly improves, a data structure for comparing subcurves, or contiguous portions of a single curve. Section 3 explains the main ideas behind it. The precise statement is as follows.
Theorem 1.1 (Main result). For every fixed dimension , there is a function such that, for every , a deterministic algorithm, given two nonempty polygonal curves in with vertices, computes in time a value such that . The same guarantee holds for the discrete Fréchet distance .
Theorem 1.1 trades accuracy for speed. The smaller the excess exponent , the larger the approximation factor, but for every fixed the factor is a constant that does not depend on the input. For instance, choosing gives an -time algorithm whose approximation factor is a fixed constant, however long the curves are. Throughout the paper, near-linear refers to this guarantee, with fixed independently of the input. The dimension is fixed, and its effect on is suppressed. Our analysis gives for (Lemma 4.7). We have made no attempt to optimize this dependence. The factor of Andoni and Shekel Nosatzki [AN20] for edit distance is likewise doubly exponential in .
The algorithm has several further features. It is deterministic, whereas the algorithms of [CHZ25, LW26] are randomized. It also reports a matching of cost at most within the same time bound, represented by segments in the parameter plane in the continuous case or pairs of original vertices in the discrete case (Corollary 8.1). The input curves are arbitrary: repeated vertices, zero-length edges, and self-intersections are allowed, distance zero is detected exactly, and the running time does not depend on the spread of the coordinates.
Table 1 places Theorem 1.1 among previous algorithms. Our result trades a larger approximation factor for a near-linear running time. The algorithms of [CHZ25, LW26, vdHO26] achieve much smaller factors, and the algorithm of Blank [Bla26] achieves factor in near-linear time when the curves are sufficiently imbalanced. For two -vertex curves, however, the best previous running time for any constant factor is [vdHO26], whereas Theorem 1.1 attains for every fixed .
1.2 Organization
Section 2 introduces our notation, and Section 3 gives an informal overview of the techniques. Section 4 then describes the algorithm: its components, how they work, how they fit together, and the formal guarantees of each part. Section 5 develops the boundary maps used by both recursions, Sections 6 and 7 prove the two recursion theorems, and Section 8 proves the parameter lemma and combines all parts into the proof of Theorem 1.1. The appendices treat the threshold search, the discrete distance, and further related work.
2 Preliminaries
Let be a polygonal curve in with vertices , and let be its size. We parameterize over , so that and is affine on each interval . Consecutive vertices may coincide. For , the subcurve is the restriction of to . Its endpoints need not be vertices, and its size is . Throughout, is a second polygonal curve with vertices, parameterized over , the dimension is a fixed constant, and is the Euclidean norm. The notation hides factors polylogarithmic in .
We now recall the Fréchet distance. A path in is bi-monotone if both of its coordinates are nondecreasing. A matching of and is a continuous bi-monotone path from to , and its cost is . The Fréchet distance is the infimum of the costs of all matchings of and , and for polygonal curves, the infimum is attained. A matching of cost at most is an -matching, or a witness for . For the discrete distance , a matching is a sequence of index pairs from to with steps in , its cost is the largest distance of a visited pair, and is the minimum cost. Unless stated otherwise, we discuss the continuous distance.
We work with the decision version of the problem, which suffices for approximating the distance. For a radius and a factor , a -approximate decision procedure answers YES whenever , and every YES answer comes with a -matching of and . A search over turns such a procedure into a -approximation of , with calls and additional time (Lemma 4.9).

(a) Free space
(b) Boundary reachability
Figure 1: (a) Free space at radius r (white). Both t and u are r-free, but only t is r-reachable from s. (b) A subrectangle R, with free input and output intervals in blue and orange. Green paths witness reachability.
Alt and Godau [AG95] introduced the free-space diagram to turn the decision problem into a reachability problem. The free-space diagram of and is the rectangle , whose point represents the pair of points and . For a radius , the free space is , and its points are -free. Each pair of original edges defines a cell . The map is affine on a cell, so the free space within a cell is convex, and its intersection with a side of the cell is a closed, possibly empty, interval, called a free interval.
For points and of the diagram, is -reachable from if , and . Equivalently, some bi-monotone path in connects to . In particular, if and only if is -reachable from . Being -free is a property of a single pair of positions, whereas -reachability also requires the preceding portions of the curves to be matched within distance (Figure 1(a)). The classical decision algorithm propagates the reachable parts of the cell sides from cell to cell. By convexity, the reachable parts of the top and right sides of a cell are determined by those of its bottom and left sides in constant time, which decides in time.
Our algorithms work with rectangles of the diagram. A rectangle is a set with real numbers and , so its sides need not lie on cell boundaries (Figure 1(b)). It corresponds to the pair of subcurves and , and its size is . Its input boundary consists of its left and bottom sides, and its output boundary consists of its top and right sides. Every bi-monotone path that crosses enters through and leaves through . The original vertices partition each side into boundary edges, and the free part of each boundary edge is a single free interval. For , we write if some bi-monotone path from to inside exists, and we also write for the set of pairs with .
The information that our data structures maintain about a rectangle is which free entrances reach which free exits. Since our algorithms are approximate, we allow a gap between the radius at which reachability must be recorded and the radius at which it may be recorded.
Definition 2.1 (Boundary information). Let and . A relation is -boundary information of if
and if, for every pair , a bi-monotone path from to in , called a witness, can be reported.
For , the boundary information is exactly the reachability relation between the two boundaries. In Section 5, we construct approximate boundary information with descriptions of size , called boundary maps. The following lemma shows that boundary information for the pieces of a partition determines boundary information for the whole rectangle, with the same approximation factor.
Lemma 2.2 (Boundary information composes). Let for rectangles with disjoint interiors, and let be -boundary information of . Then , where denotes the transitive closure, is -boundary information of . A witness of is the concatenation of the witnesses along a chain with .
Proof. Concatenating bi-monotone paths gives a bi-monotone path whose cost is the maximum of their costs, so these witnesses lie in , and . Conversely, let be a bi-monotone path from to in . Suppose first that has positive area. The positive-area pieces still cover , so discard the other pieces. Assign each point of to the unique whose half-open box contains it, where the box is closed on the sides of that lie on . By monotonicity, once leaves the box of , it keeps or and never returns. Hence splits at points , with , into portions, and the th portion runs from to inside . By Definition 2.1, for every , so . If is a segment, subdivide at the endpoints of the . Each subsegment lies in some , and , giving the same conclusion. The case where is a single point is immediate.
We now describe how a query uses boundary information. Its input specifies the available entrances, and its output records which exits they reach. To retain information about the sources, we propagate labels. A label consists of a numerical weight and a source identifier, ordered lexicographically. A labelling assigns labels to boundary points. We represent it by step functions on the boundary edges, called label profiles. A reachability query has two modes: min-propagation selects the smallest entrance label reaching each exit, and max-propagation selects the largest. An unavailable label is denoted by in min mode and by in max mode, also the respective values for an empty set of candidate labels. Our approximate queries satisfy the following common guarantee.
Definition 2.3 (Certified propagation). Let , , and fix min or max mode. A labelling of is an -certified propagation of a labelling of if, for every ,
- (completeness) for every with ,
- (soundness) if is finite, a source and a bi-monotone path from to can be reported with
The path in the soundness condition is a local witness: it certifies the passage through , even if the input label was produced by an earlier propagation. Boundary information gives certified propagations in both modes by taking
with witnesses for the selected pairs. The relation can be reused for different labellings; a propagated labelling is the answer to one particular query.
For a reachability test, we only need to know whether an output label is finite. On the whole diagram, give only a finite label. Completeness and soundness then give a -approximate decision procedure: the final corner receives a finite label whenever , and such a label comes with a -matching.
To construct reusable boundary information, we also use the values of the labels. Giving a finite set of entrances their ranks along the input boundary lets min- and max-propagation find the extremal entrances reaching each exit, up to the approximation. These two extremes alone do not suffice: an entrance between them may reach no exit at all. Reversing both axes exchanges the input and output boundaries, so propagation from all exits identifies the entrances that reach some exit, again up to the approximation. We call this reverse activity. The two extremal propagations and reverse activity together yield the compact summaries described in Section 3.4 and constructed in Section 5.1.
Our algorithm provides three components for preparing boundary information and answering queries. The preprocessing algorithm Build takes a curve , called the host, and a radius , and constructs a self-index. The index stores boundary information for selected pairs of subcurves of , with the reversal of also prepared. This information is independent of the labels supplied by subsequent queries.
Given this index, SelfQuery takes two subcurves of the host or its reversal and a labelling of . It computes the min- or max-propagation of through a boundary map of the whole rectangle , returning output label profiles from which local witnesses can be reported. The map is prepared independently of . This requirement on the representation of the answer is used by the general query algorithm; Section 4.1 states it formally.
Finally, Query takes subcurves of two separately preprocessed curves and and a labelling of . It returns a certified propagation to , with local witnesses, using the self-indexes available on each curve. The separate preprocessing includes indexes on subcurves at the lengths and radii needed by the query; these collections are formalized as window bundles in Section 4.1. No joint index on and is required, even when they are subcurves of a common host. We leave the prepared indexes, radius, and choice of mode implicit in the query notation. Section 3 explains how the three components work together, and Section 4 gives their approximation and running-time guarantees.
3 Technical overview
By the reduction in Section 2, it suffices to give a -approximate decision procedure for a fixed radius , where may depend on but not on . The classical algorithm explores the free-space diagram cell by cell and thus inspects every cell. We instead propagate labels across whole rectangles of the diagram, using boundary information that was prepared in advance, so that most cells are never inspected. A single improvement of this kind, however, lowers the exponent only from 2 to some constant above 1. To come arbitrarily close to linear time, the local computations must become cheaper again and again, and the output of each computation must be usable as the input of the next one.
The three components of Section 2 improve each other in two steps. Fast self-queries let us speed up general queries; we then use these faster queries to build the next self-index more cheaply. From now on, we call a self-index simply an index. Section 3.1 explains why this alternation leads to near-linear time, and Sections 3.2 and 3.3 describe the two improvements. The main technical difficulty is to make the output of every step reusable by the next one, and Section 3.4 explains how we represent boundary information for this purpose. The edit-distance algorithm of Andoni and Shekel Nosatzki [AN20], which iteratively builds distance oracles, follows a similar overall strategy.
3.1 Where the speedup comes from
Consider an index whose preprocessing on a host of size takes time and whose self-queries take time. The parameters and measure the excess over linear time; we will use in the same way for general queries. To decide whether , we can join and into one host of size , build the index, and ask a single self-query on in which only the initial corner carries a finite label. This takes time, so both and must be small. The base index illustrates the difficulty. It stores the boundary information of all products of dyadic intervals of the host, computed exactly cell by cell. A self-query uses stored rectangles and thin end strips whose total boundary size is , giving near-linear query time , but the preprocessing takes quadratic time . Our algorithm progressively lowers while keeping the query overhead small. Some steps make self-queries slower in exchange for cheaper preprocessing; the intervening steps recover enough query speed to continue.
Two kinds of reuse make these trades profitable. The first is reuse across sources, and it speeds up general queries. Consider a general query on , where P and Q have size at most b and each curve is separately prepared at the lengths and radii needed by the query, as in Section 2. For sources on the bottom side, we replace Q, or the prefix that can be reached, by a surrogate formed from at most k subcurves of P. These pieces match successive chunks of Q. The surrogate is found by a search that runs a slower general query, but only on rectangles whose height is a single chunk, of size b/k. The comparisons over the full length of P then become self-queries between P and the pieces of the surrogate, which the index answers quickly. A single search serves all entrances on this side and all of their labels, so its cost is paid once per query and not once per source. If the slower query takes time and self-queries take time, the new query takes
time. The first term pays for the search: its total cost is controlled by how far the search advances along , as we explain in Section 3.2. The second pays for the self-queries. Few chunks make the search expensive, and many chunks make the self-queries expensive. When , choosing balances the two terms, and the excess exponent of general queries drops from to , which lies between and . Repeating this step with the same index brings this exponent arbitrarily close to . With the base index, for instance, the exponents are , so general queries take time .
The second kind of reuse is across partners, and it makes the next index cheaper to build. We cut the host into blocks of size and build the old index only on the blocks. Once prepared, each block serves all of its partners when the fast general query is run on every pair of blocks. Moreover, we never keep the cells of a block pair. Its boundary information is compressed into a boundary map of size (Section 3.4), so all later computations on larger rectangles touch only block boundaries. The new index takes time to build, where the first term pays for the old indexes on the blocks and the second for the general queries on the block pairs, and its self-queries take time. Small blocks make the old preprocessing cheap but create many pairs, and large blocks do the opposite. Once , choosing balances the

(a) Stored maps and fringes

(b) Finding donors

(c) Propagating labels
Figure 2: The two recursions. (a) A self-query uses stored maps in the aligned middle (blue) and general queries on the fringes (orange). (b) Within one block pair, the search finds donors for successive chunks; the gray rectangles show doubling tests for the first chunk. (c) Labels pass through self-queries on (green), with direct checks across the joins (orange). Red paths are witnesses.
two terms and improves the preprocessing exponent. The self-query bound comes from the small rectangles left at the boundary of a query; we account for them in Section 3.3. For example, an old index with quadratic preprocessing, combined with general queries in time , gives , preprocessing time , and self-queries in time .
The surrogate step turns fast self-queries into fast general queries, and the block step turns fast general queries into cheap preprocessing, at the price of somewhat slower self-queries. If general queries had no overhead at all, that is, if , the preprocessing exponent would decrease as : the reciprocal would increase by one per round. In our schedule, before each block step we reduce to at most a small target . The resulting self-query overhead stays below , so a number of surrogate steps depending only on suffices for the next round. Choosing sufficiently smaller than ensures that still increases by a constant in every round until . Thus rounds suffice. The expensive base index never sees the whole input. Each round invokes the previous index only on blocks, and the block exponents multiply over the rounds, so the base index is built only on blocks of size . Figure 2 shows how the two steps nest inside each other in the free-space diagram.
The approximation factor stays bounded for a similar reason. By Lemma 2.2, witnesses of consecutive rectangles concatenate without increasing their cost, so splitting a rectangle into many pieces loses nothing. Composing with a surrogate matching does add costs, by the triangle inequality, but this happens once per surrogate step and not once per piece. Every other loss is a constant per round. Since all recursion depths are fixed once is chosen, the factor depends only on , and not on the number of cells, pieces, or tree levels that a path crosses.
3.2 Shared surrogates and faster queries
We now describe how to construct and use a surrogate. Let P and Q be separately prepared curves of size at most b. We first handle sources on the bottom side, using the index on P. These sources share the first point of Q but may start anywhere on P. The same surrogate must serve every starting position and labelling.
Let be the approximation factor of the slower general query used in the search. Split into consecutive chunks , and suppose for the moment that we have found subcurves

(a) Donors and their matchings

(b) The same surrogate for all sources
Figure 3: One surrogate serves many sources. (a) The matching pairs donor with chunk ; together with the orange joins, these form a matching of and . (b) Three possible paths use the same while starting at different positions on . The narrow orange bands represent joins, crossed at a fixed position on .
of , called donors, in order along and with disjoint interiors, such that for every . Joining consecutive pieces by segments gives a curve , the surrogate. At the cut point between and , the end of and the start of are both within distance of the same point of . Hence the joining segment lies in the ball of radius around this point, and it can be matched to it while pauses. The matchings of the chunks therefore combine into an -matching of and (Figure 3(a)). This reduces the comparison of with to comparisons of with the pieces , and each of these is a self-query of the index on .
Note that now plays two different roles. The horizontal copy of keeps every possible entrance of the original query, while the second copy supplies the pieces that represent . In particular, choosing does not force a matching to start where starts: the self-query allows every position on the horizontal axis as a source and determines which exits it can reach (Figure 3(b)). Neither does need to have few vertices. What matters is that consists of few indexed pieces, since each of them costs one self-query.
To find the pieces, we move a cursor forward along . For the current chunk, a slower general query tests prefixes of the remaining part of of doubling width, with an equal label on every free point of the bottom side, so that every possible entrance is a source (Figure 2(b)). An accepted test identifies a donor through its leftmost top exit. We then move the cursor to the farther of this exit and the right endpoint of the last failed test, if any. The accepted exit supplies a donor, while the failed test certifies progress that every true -matching must make. Both positions lie behind every true path at the chunk boundary, so the update preserves all true paths. Using every free bottom point as a source is essential: the first chunk of may be matched to the middle of , and the search must find a donor without committing to an original source.
This cursor rule also pays for the search. Write for the chunk size. A test of width costs : splitting the longer side into shorter strips extends the balanced query bound to this unbalanced rectangle. If the search doubles its width before succeeding, the last failed test makes the cursor advance by at least half the final tested width. Apart from one possible final unsuccessful chunk, whose width is at most , the wide tests can therefore be charged to disjoint advances along . Their total width is , and the chunk sizes sum to , giving the search cost claimed in Section 3.1.
The search need not find a donor for every full chunk. If no test reaches the top of a chunk, we stop, retaining a final partial donor up to the highest accepted point on the right side, if there is one. By completeness, the surrogate represents a prefix of containing every truly reachable output.
To use the surrogate, we run the self-queries for its pieces in order, carrying the actual labels from each piece to the next (Figure 2(c)), and we transfer the answers back to through the saved matching . Right-side outputs are retained; top-side outputs are used only when the represented prefix is all of . Suppose that the index has factor , that is, its self-queries return -certified propagations (Definition 2.3). We query it at radius , because by the triangle inequality, a true -matching of and composes with to a matching of and of cost at most . Composing the returned witness with once more gives cost at most . This cost does not accumulate over the pieces, since consecutive witnesses concatenate at the maximum of their costs.
The joining segments are handled directly: we keep the position on fixed and pass a label across a join when both endpoints are within distance of that point. Convexity then makes the whole join feasible. These checks take time in total, within the cost of the self-queries. Sources on the left side are handled in the same way after exchanging the roles of and , now using the index on .
3.3 Building the next index
The block step of Section 3.1 must also answer self-queries on subcurves with arbitrary endpoints, which need not be unions of blocks. We therefore build a balanced binary tree over the blocks. Each node represents a consecutive range of blocks, called a canonical interval, and we store boundary maps for all products of two such intervals. A self-query covers the aligned middle part of its rectangle by stored canonical products, and it runs the general query only on the fringe rectangles near its boundary, each of which lies in a single pair of blocks (Figure 2(a)).
The stored rectangles used by one query have total boundary size . The remaining fringes form a constant number of rows and columns of block pairs, so there are only of them. Each costs to query, giving time in total. This accounts for the self-query bound of Section 3.1, including queries whose endpoints lie inside original edges.
Here the approximation factor requires some care. If every level of the tree introduced a fresh loss, the factor would grow with the depth of the tree and hence with b. We avoid this by compiling each canonical map directly from the network of block-pair maps inside it. We call the latter maps primitive. To compile one of our propagation routines on a rectangle, we run it three times with fresh labels and turn the results into a boundary map (Section 3.4). By Lemma 2.2, the boundary information of the primitive rectangles composes without loss. A path may cross many primitive rectangles, but it is approximated only within the primitive maps and once more when the canonical map is formed. In other words, the tree decides which rectangles are stored, not how often a path is approximated.
Compiling all canonical maps this way is still affordable. For a fixed pair of tree levels, the canonical products partition the block grid. Each of the primitive maps costs to apply, so all products at these levels cost . There are only pairs of levels. Their total cost is thus covered by the term already spent on the block pairs.
A second design choice keeps the interface uniform across rounds. A self-query could propagate the caller's labels directly through the network of stored and fringe maps, and the result would be a correct certified propagation. We instead compile the whole queried rectangle into a single boundary map and only then apply the caller's labels. This costs another constant in the approximation factor, but the new index then answers self-queries in exactly the same form as the old one, so the surrogate step of the next round can use it as a black box.

(a) Extremal entrances

(b) An active entrance

(c) Splicing at z
Figure 4: Extremal entrances and activity. (a) The two paths to t alone give no path from . (b) A path from to an exit crosses an extremal path at . (c) The red splice reaches with no larger radius. Here precedes in output order; an exit after uses the other extremal path.
3.4 Boundary summaries and continuous profiles
We now explain the boundary maps used by both recursions. They must store boundary information (Definition 2.1) in a form that can be applied to new labellings and retains witnesses. Its size must depend only on the complexity of the rectangle, even when the arriving labels have passed through many earlier queries. We first describe a summary for finitely many boundary points, then extend it to the continuous boundary.
Such a representation exists because of planarity. Consider first finitely many entrances and exits, which we call ports. We order the entrances from the top-left corner down the left side and then along the bottom side, and we order the exits from the top-left corner along the top side and then down the right side. Two bi-monotone paths whose endpoints alternate in these orders must intersect, and at an intersection we can combine the prefix of one path with the suffix of the other without increasing the larger cost. Now suppose that paths from entrances 1 and 3 reach an exit t. Entrance 2 need not reach t, since it may not reach the output boundary at all. If it reaches some exit v, however, then its path crosses one of the two paths to t, and a splice gives a path from entrance 2 to t (Figure 4). Thus, between the extremal entrances that reach t, the only missing information is an activity test, which asks whether an entrance reaches any exit at all.
This observation suggests a description of linear size: two extremal entrance ranks per exit, together with the active entrances. We obtain these data from three runs of our propagation routine, computing the minimum entrance rank, the maximum entrance rank, and reverse activity from the exits. Simple prefix and suffix scans turn the two rank arrays into bounds L and U that are nondecreasing in output order. The summary relates s to t precisely when
where is the set of retained exits, the active entrances, and the position of in the input order. Applying a summary to new labels is then a range-minimum or range-maximum problem, and the geometry is never recomputed. Every accepted pair has a witness that is spliced from at most three witnesses of the three runs. This use of extremal entrances is related to the grid-reachability methods of Bringmann, Künnemann, and Nusser [BKN21].
On a continuous boundary, each boundary edge contributes a whole free interval rather than a single port. We represent each free interval of the input boundary by its first point and each free interval of the output boundary by its last point, in the direction of increasing coordinates: rightward on horizontal sides and upward on vertical sides. Every true crossing extends to these representatives along the free boundary, so no reachable pair is lost. Conversely, a path between two representatives can be clamped to the coordinate box of an actual pair of comparable boundary points. All points of a free interval are within distance r of a single point of the other curve, so

(a) One varying input profile

(b)
Figure 5: Updating a continuous label profile. (a) Among the related input edges, only the edge below contributes a varying prefix; earlier edges contribute scalar minima. (b) Taking the minimum with changes 9, 6, 2 to 7, 6, 2. The unchanged suffix is shared with .
clamping costs at most 2r on each axis. A summary of the ports with factor F thus yields a boundary map of all boundary points with factor . Since repeated clamping would accumulate these losses, we clamp only once per stored rectangle and once per query.
Label profiles raise a different issue. As queries are composed, a label profile can accumulate many steps. New sources may improve the best label at different positions, and these improvements can survive many later queries. Storing one label per edge would lose information, and copying every inherited step would destroy the running time. Persistent data structures help only if the geometric update itself can be done without scanning the profile. We describe min-propagation; max-propagation is symmetric. First propagate labels forward along each free boundary interval. The available sources only increase as we move forward, so the resulting profile is nonincreasing.
The structural fact we use is that on one output edge, at most one input profile contributes a varying value. Consider a point on an edge of the top side, whose height is . Among the input edges related to this output edge by the finite summary, every left edge and every earlier bottom edge lies entirely before t in coordinate order. Each therefore contributes its best label, a scalar. Later bottom edges cannot reach t. Only the bottom edge directly below t has an eligible prefix that changes with x (Figure 5). If this edge is related to the output edge, let be its profile on the free interval , and let c be the best scalar contribution. Then, for , the output combines them as
When the varying term is absent, only remains. Since is nonincreasing, wins on a prefix. For example, the steps 9, 6, 2 become 7, 6, 2 after combination with . A persistent balanced search tree [DSST89] replaces this prefix and shares the unchanged suffix in logarithmic time.
The surrogate step contains one more place where long profiles might have to be read, namely the transfer of answers from the surrogate axis back to Q. For sources on the bottom side, an output on the top side stays on the axis of P, so its profile never changes coordinates. At an output on the right side, every bottom source passes the coordinate test, so the output is the envelope of a constant number of scalar records per edge. Each record stores a label and the interval where it applies, together with its witness information. Only these records change axes, by one ordered scan along , and long profiles always stay on the axis where they were created.
Thus each of our propagation routines yields a boundary map by three runs with fresh labels. The map can then be applied to new labellings in time near-linear in the boundary size, even when the profiles have many inherited steps. This is what lets one recursion use the output of the other without revisiting earlier computations. Section 4 assembles these components into the full algorithm.
4 The algorithm
Section 3 explained the ideas behind the algorithm. This section states the running-time and approximation guarantees for the three interfaces of Section 2 and explains how the components are combined. The boundary maps are developed in Section 5, the inner and outer recursions are proved in Sections 6 and 7, and Section 8 combines all parts into the proof of Theorem 1.1.
4.1 Boundary maps and indexes
The preprocessing operation Build constructs an index on one host, independently of subsequent query labels. The two query operations, SelfQuery and Query, receive a labelling of and return label profiles on forming an -certified propagation (Definition 2.3). As in Section 2, the prepared indexes, radius, and choice of min or max mode are implicit in their notation.
Queries pass profiles by reference. The profiles produced by the algorithms are monotone in the chosen mode after forward propagation along free boundary intervals; Section 5.3 gives their persistent representation. Sparse initial labels and the fresh labels used in compilation are converted to this form by the same forward propagation. All query bounds below use this representation. Every finite output retains a label and witness information. A local witness starts at an input point of the current invocation carrying that label; reporting it does not require expanding the label's earlier history. The time bounds include reporting one such witness from the retained state.
We represent witnesses by polygonal paths. Straightening within cells gives a matching of with segments without increasing its cost. Two witnesses with a common end and start pair can be concatenated with cost equal to the larger of their costs. A -matching of and a -matching of compose through to a -matching of . If they have segments, merging their breakpoints along constructs the composition in time and space.
The construction of Section 3.4 uses two objects: a finite summary on representative ports and the boundary map it induces on the continuous boundary. An -summary stores boundary information restricted to one representative port per nonempty free interval, with its boundary-edge role. Its boundary map (Definition 5.5) is -boundary information of , so propagation through it is -certified (Lemma 5.6). We compile these maps from our routines by min-propagation, max-propagation, and reverse activity, under the conditions of Lemma 7.1. The map is independent of the caller's labels and is applied to label profiles in time (Lemma 5.10).
An index packages boundary maps for one host curve. Its type records the excess exponents of preprocessing and self-query time, together with its approximation factor.
Definition 4.1 (Index). Let and . An index of type provides two deterministic algorithms with the following guarantees, for every polygonal curve (the host) of size and every .
• Build returns a self-index for and its reversal in time. Its stored boundary information and witness data are independent of subsequent query labels.
- SelfQuery takes two subcurves of or of its reversal, with arbitrary real endpoints, and a labelling of . In time, including the report of one local witness, it computes the min- or max-propagation of through a boundary map of with raw factor at most (Definition 5.5). This map is independent of , and every record created while applying it has a local witness of cost at most (Lemma 5.6). In particular, the output is
an -certified propagation of , represented by output label profiles with local witness records.
The map must be independent of because the outer recursion compiles maps during preprocessing and applies them to labels that arrive later. The output must come from a boundary map, and not merely be certified, because the inner recursion relies on the form of such maps when it moves outputs between axes (Lemma 6.3). Since the bound refers to the size of the whole host, we also prepare indexes on windows of the host at all scales, so that a self-query on short subcurves is charged to their own size.
Definition 4.2 (Window bundle). Fix an index type and a finite set . The window bundle of a curve at radius consists of the indexes for every and every window of that is either an aligned dyadic window or the union of two adjacent aligned dyadic windows of the same length. The scales run from one edge to the first power of two at least the length of the host's parameter interval, with windows truncated at its endpoints. A one-point host has itself as its only window.
Lemma 4.3 (Window bundles). For an index of type , the window bundle of a curve of size can be built in time. Every subcurve of size is contained in a window of the bundle of size . Consequently, a self-query on subcurves that lie in a common window of size , with either orientation allowed on each axis, takes time.
The recursion starts from the base index. For every pair of dyadic intervals of the host, its preprocessing runs exact cell-by-cell propagation (Lemma 5.12) and stores the compiled map, of factor 5, in total time. A self-query covers its rectangle by stored products and thin exact strips at the partial end edges, propagates through this network, and compiles the whole rectangle into one boundary map, of raw factor 5 and factor 9, in time. Thus the base index has type , as verified in Section 7.2. It is the starting point of the recursion, and it is only ever built on small blocks.
4.2 The inner recursion
A general query propagates labels on for subcurves of separately preprocessed curves . It uses a window bundle of a fixed index on each curve. The general query is exact propagation. The query implements the surrogate step of Section 3.2 with as the slower routine. In its search phase, it cuts into chunks and finds donors on by tests of with fresh, equal labels, and it forms the surrogate together with a matching of and the represented part of (Lemmas 6.1 and 6.2). In its transfer phase, it propagates the actual labels through the rectangles by self-queries at radius , carries labels across the joining segments at fixed positions on , and maps the right outputs back to through (Lemma 6.3). Sources on the left side are handled symmetrically, and the answer is the pointwise minimum of the two results in min mode, or the maximum in max mode. Balancing the two phases by the choice of gives the following guarantee, which Section 6 proves.
Theorem 4.4 (Inner recursion). Fix an index of type with , and define
Then . Let and suppose that window bundles with radius multipliers are available separately on and . For subcurves of sizes and a labelling of , a deterministic algorithm returns output label profiles forming an -certified min- or max-propagation of in time, including the report of one local witness from an input point of . It uses no joint index on P and Q, even when they lie on a common host. All geometric computations of are independent of .
The set contains the index radii needed by the recursive tests and self-queries, as multiples of . A search test keeps the base radius and uses the smaller-depth query's bundles; depth additionally uses self-queries at radius . The exponents have a simple closed form, which shows that they approach the self-query excess exponent but never reach it.
Lemma 4.5 (Query exponents). If , then . If , then . In both cases, decreases to and for every .
Further inner steps leave the preprocessing cost unchanged. To lower that cost while retaining fast queries, the outer recursion builds a new index.
4.3 The outer recursion
The outer recursion implements the block step of Sections 3.1 and 3.3, using the old index and the general query for some depth . On a host of size , the new preprocessing (Algorithm 3) cuts the host into blocks of size , builds window bundles of the old index on the blocks, compiles on every pair of blocks into a primitive map, and compiles the network of primitive maps inside every product of two canonical intervals into a canonical map. A new self-query (Algorithm 4) covers the aligned middle of its rectangle by canonical products, compiles on the fringe rectangles near its boundary, and compiles the resulting network into one boundary map. With the block size , which balances the preprocessing terms, this gives the following guarantee, proved in Section 7.
Theorem 4.6 (Outer recursion). Fix an index of type , an integer , and a real number with , where and are given by (4.1). Then there is an index of type
Its construction on a host of size b invokes the given index only on hosts of size .
The outer construction adds 12 to because each lift to continuous boundaries adds 4, and this happens three times: for primitive maps, for canonical maps, and for the whole query. The new preprocessing excess exponent is smaller than , while in our schedule, the new self-query excess exponent is larger than that of the old index. The next round of the inner recursion therefore has to bring the general-query excess exponent down again.
4.4 The schedule and the overall procedure
The algorithm alternates the two recursions (Figure 6). We write for the pair of algorithms Build , SelfQuery in round , and for its index type. The corresponding depth-t general query is denoted by Query . Round applies the inner recursion times to , and then the outer recursion with yields . The same depth and the same target are used in every round, and the next lemma shows that this uniform choice works. Table 2 summarizes the parameters.
Lemma 4.7 (Parameters). Let and
Define and
| Symbol | Meaning |
|---|---|
| type of the round- index : preprocessing , self-queries , factor , starting from | |
| excess exponent and factor of in the current round, by (4.1) | |
| number of chunks in an inner step, , and block size in an outer step, | |
| number of rounds , target excess exponent , and inner depth |
Table 2: Parameters of the algorithm. Here is the size of the host or of a rectangle side, and .

Figure 6: The improvement schedule. Starting from the base index (Section 4.1), every round applies the inner recursion times to the current index and obtains a general query with excess exponent at most (Theorem 4.4). The outer recursion then uses this query to build the index of the next round (Theorem 4.6). After rounds, a single self-query decides the problem (Lemma 4.8). The numbers and depend only on (Lemma 4.7).
For every , the excess exponent of Theorem 4.4 for an index of type satisfies . Moreover, , , and for .
In terms of reciprocals, the update reads , so grows roughly linearly, and rounds bring down to . The factor is raised to the power in every round, which makes it doubly exponential in , but it depends on nothing else. Algorithm 1 summarizes the whole procedure.
The loop over rounds only defines the algorithms. Nothing is computed on the whole input until the final index is built inside Decide. Building on a host of size invokes only on blocks and their windows, and these invocations recursively build smaller indexes in the same way. By Theorem 4.6, the host sizes shrink by the exponent in round . These exponents telescope, so the base index is built only on hosts of size , where and the hidden constant depends only on .
4.5 Deciding and approximating the distance
The final index decides whether the distance is at most with a single self-query. The procedure Decide forms a host by joining the last vertex of to the first vertex of by a segment, so that and are subcurves of , and stores the index returned by Build. Using this index, it runs SelfQuery in min mode, where assigns label 0 to the initial corner of and elsewhere, and it answers YES, together with a local witness, if and only if the final corner
Algorithm 1 Overview of the algorithm for a fixed
Input: Polygonal curves and
Output: with , and a matching of cost at most
Definitions, fixed before the input is seen:
1: Let , and be as in Lemma 4.7, and let be the base index
2: for do
3: Define as exact propagation and, for , from and Theorem 4.4
4: Define from and , with Theorem 4.6
5: end for
Execution on the input:
6: Compute a seed matching and its cost Lemma A.1
7: Search over thresholds , running with at of them Lemma 4.9
8: return the best certified bound and its matching
receives a finite label. The joining segment is never used, because every path considered by a self-query stays inside the queried rectangle.
Lemma 4.8 (Fixed-threshold decision). Given an index of type , the procedure Decide runs in time. If , it answers YES, and if it answers YES, it reports a matching of and of cost at most with segments.
With the final index, Decide runs in time and is a -approximate decision procedure. To obtain an approximation, we first compute in linear time a seed matching whose cost is within a factor of the distance (Lemma A.1). This leaves candidate thresholds, independently of the spread of the coordinates, and a binary search over them uses only the certificate of each individual answer, since the answers inside the gap need not be monotone in .
Lemma 4.9 (From decision to approximation). Let be or , and let . Suppose that for every , a procedure running in time either answers NO, in which case , or answers YES and reports a matching of cost at most with segments or pairs. Then one can compute with , together with a matching of cost at most , in time, even if the answers of the procedure are not monotone in .
Appendix A proves this lemma. Together with the schedule, it yields the factor in time , as Section 8 shows in detail.
5 Boundary maps
This section develops the compact representation of boundary information (Definition 2.1) that both recursions exchange. We proceed in four steps. First, we construct a finite summary of reachability on selected boundary points in linear space (Section 5.1). Second, we extend such a summary to all points of a continuous boundary, at an additive loss of (Section 5.2). Third, we show how to apply the resulting map to long label profiles without reading them (Section 5.3). Finally, we combine maps of small rectangles into maps of larger ones (Section 5.4), which also gives the exact base case (Section 5.5).
Throughout this section, is a rectangle whose axes are subcurves of and of sizes and , and . Recall from Section 2 that the original vertices subdivide each side of into boundary edges, and that the free part of each boundary edge is a free interval, possibly empty. A point shared by two boundary edges, such as a corner of or a vertex on a side, is treated as one point for each incident edge, and we call the incident edge its role. On each side, we orient the parameter forward, that is, upward on the left and right sides and rightward on the bottom and top sides, so that forward motion along a side is monotone.
5.1 Finite summaries
A port is a boundary point together with a role. We order the input ports by the boundary order that starts at the top-left corner, runs down the left side, and continues rightward along the bottom side. Similarly, we order the output ports by the order that starts at the top-left corner, runs rightward along the top side, and continues down the right side. Ports at the same position are ordered by a fixed order of their roles. Note that differs from the coordinatewise order . The two boundary orders run along the two arcs of the boundary of between its top-left and bottom-right corners, and this is why bi-monotone paths with alternating endpoints must cross, as the following lemma shows (see also Figure 4).
Lemma 5.1 (Crossing). Let be input points and output points of , and let and be bi-monotone paths in from to and from to , respectively. Then and intersect. Consequently, if both paths lie in , then so do the bi-monotone paths from to and from to obtained by splicing them at a common point. For polygonal paths, a common point can be found in time linear in their number of segments. For paths with steps in between grid points, it can be chosen to be a grid point.
Proof. We first show that and . If lies on the left side, then . Otherwise both and lie on the bottom side with , and because is bi-monotone. If lies on the top side, then . Otherwise both and lie on the right side with , and because is bi-monotone. Hence , and follows symmetrically.
Next, we remove stationary portions from both paths. Then increases strictly along each path, so is the graph of a continuous function on an interval. By the inequalities above and the monotonicity of the paths, the common interval , where and , is nonempty. We claim that . If is attained by and lies on the left side, then . If it is attained by and lies on the bottom side, then lies on the bottom side to its right, so is also attained by and . Otherwise, is attained only by . Then lies on the bottom side, since otherwise would lie above it on the left side, and . A symmetric argument shows . By continuity, at some , which gives a common point. Splicing at a common point keeps both paths bi-monotone and inside .
For polygonal paths, we merge the breakpoints of both paths in order of . Between consecutive breakpoints, is affine, so a sign change is located in constant time. For grid paths, one checks directly that any two intersecting steps from between grid points share a grid point.
With the crossing lemma, a few extremal paths determine the whole relation between finitely many ports. We formalize the object we want to compute as follows.
Definition 5.2 (Finite summary). Let and be finite sets of input and output ports of . A relation is an -summary if
and if for every pair in , a witness, that is, a bi-monotone path in between its ports, can be reported.
In other words, an -summary is -boundary information restricted to finitely many ports. A summary is thus allowed to contain pairs that are reachable only at the larger radius , but it must contain every pair that is reachable at radius . The rank of an input port is its position in . We build a summary from three propagations. The first two are min-propagation and max-propagation of the ranks, which find extremal entrance ranks, up to the approximation. The third is reverse activity, that is, propagation with equal labels from all output ports in the rectangle obtained by reversing both axes. It marks every input port from which an output port is -reachable, and every marked port has a witness to an output port at the larger radius .
Lemma 5.3 (Compiling a finite summary). Let , and suppose that -certified min-propagation and max-propagation of the ranks of , and -certified reverse activity from , have been computed at the ports. Then an -summary B of the form
where , , and and are nondecreasing on with respect to , can be computed in time. A witness for a pair of is obtained from at most three witnesses of the three propagations by at most two splices, in time linear in their sizes.
Proof. Let be the set of output ports that receive a finite label in the min-propagation or in the max-propagation, and for , let be the set of the one or two ranks received by . Let be the set of input ports that receive a label in the reverse-activity propagation. We define
A suffix-minimum sweep and a prefix-maximum sweep compute and in time, together with ports attaining them. By definition, and are nondecreasing, and .
The normalization replaces by a smaller value , so we must check that the entrance of rank still reaches . Let attain , so that soundness gives a witness from the input port of rank to , and let be an input port whose rank lies in , so that has a witness to . Since and , Lemma 5.1 splices the two witnesses into a witness from to . Symmetrically, the input port of rank has a witness to .
We now prove that is complete. Let . Completeness of the min-propagation gives and , and completeness of the max-propagation gives , so . Completeness of the reverse activity gives . Hence .
Finally, we prove that is sound. Let . Since , soundness of the reverse activity gives a witness from to some output port . If , we are done. If , we splice this witness with the witness from the port of rank to . This port precedes in , so Lemma 5.1 yields a witness from to . If , we use the witness from the port of rank instead. In each case, at most three witnesses of the propagations are spliced.
The form (5.1) makes a summary easy to apply. Propagating labels on through amounts to one range-minimum (or range-maximum) query over the rank interval for each , where ports outside receive the unavailable label: in min mode and in max mode. This takes time, and the result is an -certified propagation at the ports.
5.2 From ports to continuous boundaries
A continuous boundary has infinitely many points, but only free intervals, so we let one port represent each free interval. For every input boundary edge with nonempty free interval , let be the first point of in the forward direction, and for every output boundary edge with nonempty free interval , let be the last point of . For a relation on these representative ports, we define the relation on free boundary points by
Choosing the first point of an input interval and the last point of an output interval makes every true crossing extend to the representatives. In the other direction, a path between representatives must be adjusted to the actual points, and this costs at most 2r on each axis.
Lemma 5.4 (Lift). If is an -summary on the representative ports, then on pairs of free input and output points. More precisely, if , , and , then clamping a witness for coordinatewise to the box yields a witness for of cost at most , in time linear in the size of .
Proof. For the first inclusion, let with and . Moving forward from to inside , then along a path from to , and then forward from to inside gives a bi-monotone path in . Hence , so holds, and since , we obtain .
For the second inclusion, let be the clamp of . It is continuous and bi-monotone, and it starts at and ends at , because precedes on and follows on . Consider a point of and its clamp . If , then either or . In the first case, lies on the bottom side, since on the left side . Thus and both lie in , so and are both within distance of , and . In the second case, lies on the top side, and the same bound holds via . By the symmetric argument, . Therefore,
Clamping splits each segment of into segments, which gives the time bound.
The lifted relation describes crossings through . A query should also allow a source to move forward along the input boundary before it crosses, and an output to be carried forward along the output boundary afterwards. These boundary motions make the labels on each edge monotone, which our representation of profiles requires. Let be the relation of pairs of input points such that some bi-monotone path from to lies in , and define analogously with . Thus moves forward along one input side and may pass from the bottom-left corner onto either side, and moves forward along one output side and may enter the top-right corner from either side.
Definition 5.5 (Boundary map). For an -summary on the representative ports of , the boundary map induced by is . We call its raw factor and its factor. Min- and max-propagation through take, respectively, the minimum and maximum of over , with the unavailable labels of Section 2 for empty sets.
To report witnesses later, an algorithm must remember why a pair belongs to . A pair is witnessed by a decomposition , where , , , , and . Every record that our algorithms create when they apply a boundary map stores such a decomposition. The next lemma shows that this suffices to report a witness for the record, whether or not the record attains the selected extremum at its output point.
Lemma 5.6 (Boundary maps). Let be an -summary on the representative ports of . Then . Hence is -boundary information of , and propagation through in either mode is -certified. Given a decomposition of a pair of and a witness for , a witness for of cost at most is obtained in time linear in the size of plus the number of boundary edges between and and between and .
Proof. Both closures contain the identity on free points, so by Lemma 5.4. For the second inclusion, we concatenate the boundary path from to , of cost at most , the clamp of to the box of and , of cost at most by Lemma 5.4, and the boundary path from to , of cost at most . Their concatenation is a witness of cost at most .
It is important that the clamp is applied to the witness of the finite summary, at the anchors and of the outermost rectangle. Clamping an already clamped witness again would add another . This is why each of our index constructions clamps only once, at the level of the whole queried rectangle.
5.3 Applying a boundary map to label profiles
We now explain how to propagate labellings through a boundary map when the labels on a single boundary edge form a long step function. The key point is that the update never needs to look at the individual steps of an inherited function. The label profiles introduced in Section 2 have the following monotone form after forward propagation along the free boundary.
Definition 5.7 (Monotone profiles). A min-profile on a boundary edge is a function from to labels and that is nonincreasing in the forward direction, piecewise constant with finitely many pieces, and whose finite part is a closed final segment of . A max-profile is defined in the same way, with a nondecreasing function and unavailable value .
Profiles retain the source and witness records associated with their finite values. An output record created by applying a boundary map stores the decomposition above; inherited records are shared.
Applying to explicitly given labels on finitely many closed intervals and points, or to profiles, yields a min-profile on every input edge. Indeed, the set of sources that reach a point by moving forward grows with the point, so the minimum label is nonincreasing, and since each source set is closed, the finite values form a closed final segment. The same holds for on output edges.
Fix a top output edge that is contained in the original edge of , and let denote the min-profile of an input edge after input closure. Let be the set of input edges on the left side, together with the bottom edges contained in . Let be the bottom edge contained in , with free interval . We define
and for . Right output edges are treated symmetrically, with the roles of the axes exchanged. The next lemma confirms that this simple formula computes the propagation through Lift(): all eligible edges except contribute a single scalar, and contributes one inherited profile.
Lemma 5.8 (One inherited function). For every top output edge and every with , the min-propagation of the closed input profiles through Lift(), restricted to pairs with role , equals . At the output points at original vertices, the propagation equals the minimum of this expression and further terms of the same kind. All values and the vertex terms can be computed in time from the representation (5.1) of .
Proof. Let with . A source is eligible if and . If , then every point of satisfies , so contributes the minimum of . This minimum is the value at the last point of , because is nonincreasing. If , the eligible points form the interval , which is empty if , so contributes . Every other bottom edge lies in and contains no point . At a vertex point , the first point of the next bottom edge also becomes eligible, together with other roles at the same position, and these contribute further terms.
In the input order, is a prefix, because the left side comes first and the bottom edges follow from left to right. Hence is a range minimum over the rank interval intersected with a prefix, after the ports outside are given the label . A range-minimum structure over the values answers all queries in time, and each answer comes with an attaining edge. For a right output edge, the eligible edges on the left side lie below , and they form a suffix of the input order.
We store each profile in a persistent balanced search tree [DSST89] keyed by breakpoints, in which every node stores the extreme coordinates and labels of its subtree. Separately, each generated record stores its label, the operation that created it, and predecessor pointers with the attained points used by that operation. Let bound the total number of records and tree nodes allocated by the algorithm. The numerical trees share unchanged parts of step functions, while the separate records keep track of where each contribution came from.
These records implement the local witnesses of Section 4.1. Dependencies are created in topological order, and each primitive operation can report its path. Traceback follows predecessor pointers, preserving the label and joining paths at the stored points, until it reaches an input of the current invocation. It takes time proportional to the total reporting time of the visited operations and does not expand the earlier history of the input label.
Lemma 5.9 (Persistent profile operations). On a min-profile, each of the following operations takes time and allocates new nodes, regardless of the number of pieces of the profile: evaluation at a point, restriction to an interval, concatenation of two profiles on adjacent intervals, extension by a constant, and the pointwise minimum with a constant on a final segment. The same holds for max-profiles.
Proof. Searching, splitting, and joining a persistent balanced tree copy only nodes and share all other subtrees. Restriction uses two splits, concatenation and extension use one join each, and evaluation uses one search. For the minimum with a constant on a final segment, we split at the start of the segment. Since the profile is nonincreasing, the points where is smaller form a prefix of the segment. One search in the label order locates the end of this prefix, and we replace the prefix by a single piece with value while sharing the suffix.
Our algorithms perform a polynomial number of operations, each of which creates breakpoints. Hence is polynomial in , and the factors are absorbed in . Combining the formula of Lemma 5.8 with these operations gives the main tool of this section.
Lemma 5.10 (Applying a boundary map). Let be an -summary on the representative ports of , given in the form (5.1). Given min-profiles on the input edges, the min-propagation through can be computed as min-profiles on the output edges in time. The same bound holds for max-propagation of max-profiles. Every created record stores a decomposition, so it has a local witness of cost at most by Lemma 5.6.
Proof. We first apply . We sweep each input side forward and carry the last finite value of an edge onto the next edge if the shared vertex is free, by taking the minimum with a constant on a final segment. At the bottom-left corner, the corner value is carried onto both sides. Next, for every output edge , we compute and the vertex terms (Lemma 5.8) and form . For this, we restrict to , extend it by its last value, and take the minimum with . Finally, we apply by a forward sweep, as for . Each of the edges and vertices requires operations of Lemma 5.9, and the range queries cost in total.
Each created record arises from a range query with an attaining port, from the restriction of at the point , or from a closure step. In each case, the anchors and and the closure predecessors of its decomposition are stored with the record. Max-propagation is symmetric.
5.4 Networks of rectangles
Large rectangles are handled by combining routines for smaller ones. This is the algorithmic counterpart of Lemma 2.2, which combines boundary information over a partition. Since witnesses concatenate without loss, the combination does not increase the approximation factor. Let a positive-area rectangle be partitioned into positive-area rectangles with disjoint interiors, numbered so that whenever the right or top side of and the left or bottom side of share a segment of positive length. For a grid, numbering the rectangles by the sum of their column and row indices suffices. Suppose that each comes with an -certified propagation routine in the chosen mode. We describe min mode; max mode replaces every minimum by a maximum. Network propagation processes in this order. The label at an input point of is the minimum of the given label at , if , and of the output labels at of all earlier rectangles that have on their output boundary. The output label at a point of is the minimum over all rectangles that have this point on their output boundary.
Lemma 5.11 (Networks). Network propagation in either mode is -certified on . A local witness is the concatenation of local witnesses of the visited routines, and a bi-monotone path visits each rectangle in at most one maximal portion. For a grid, it visits at most rectangles.
Proof. It suffices to prove the claim in min mode. We use the assignment of the points of R to half-open boxes from the proof of Lemma 2.2, which splits every bi-monotone path into maximal portions, one for each rectangle that it visits. The new point here is that the processing order respects these portions.
We first prove completeness. Let be a bi-monotone path from to in . When leaves the half-open box of , it reaches a point on the right or top side of , and we claim that the rectangle to which is assigned satisfies . If shares a segment with the right or top side of , this follows from the numbering. Otherwise, is the top-right corner of and the bottom-left corner of . In this case, the rectangle that contains the points just below and to the right of shares a segment with the right side of and a segment with the bottom side of , so its index lies between and . Hence the assigned index increases along , and splits into portions, each of which lies in one rectangle and runs from a point of its input boundary to a point of its output boundary. Consecutive portions meet at a point that is an output point of the earlier rectangle and an input point of the later one, so the later rectangle receives the earlier label there. By induction over the portions and by the completeness of each routine, the label at is at most the label at .
For soundness, we follow the record of a finite output label backwards. This gives a sequence of local witnesses of the routines, joined at common points, and their concatenation is bi-monotone and has cost at most . Since the assigned index increases along a bi-monotone path, every rectangle is visited in at most one portion. In a grid, each transition increases the column index or the row index, which gives the bound .
5.5 The exact base
The recursion starts from exact propagation. By cell convexity, two free points in one cell are related exactly when they are comparable, so every cell admits an exact transfer. The following lemma is the classical cell-by-cell propagation of Alt and Godau [AG95] and the dynamic program of Eiter and Mannila [EM94], extended to labels and persistent profiles.
Lemma 5.12 (Exact propagation). Let have subcurve sizes . Exact, that is, -certified, min- or max-propagation through takes time, and a local witness with segments can be reported in time. In the discrete setting, the time bounds are and .
Proof. We describe min mode; max mode is symmetric. If is a segment or a point, a forward scan of its free intervals propagates all available labels exactly in time. Since one of is at most two, this satisfies the stated bound. Now suppose has positive area.
For a single cell, holds if and only if and are free and , by cell convexity. This is the relation for the relation that contains all pairs of representative ports, so the transfer through a cell is computed by operations of Lemma 5.9, and its witnesses are straight segments. Network propagation over the grid of cells is exact by Lemma 5.11 with , takes time, and its local witnesses visit cells. In the discrete setting, a state is free if , and the label of a free state is the minimum of its injected label and the labels of its free predecessors among , , and . Induction on proves exactness, and a traceback has steps.
6 The inner recursion: proof of Theorem 4.4
In this section, we fix an index of type with , and we prove that it yields general queries whose excess exponents approach . We begin with the closed form of these exponents, which shows that the recursion makes progress at every depth.
Proof of Lemma 4.5. The reciprocals satisfy and . For , this gives . Otherwise, , which increases to .
Throughout, and are the queried subcurves of and , with and . The window bundles on and are supplied separately, as in Theorem 4.4. We construct by induction on . For , is exact propagation (Lemma 5.12). It needs no index, and its running time is within the claimed bound because . Now assume that has been constructed, and write and . We first construct for a rectangle whose sides have size at most , in time , and then we extend it to unbalanced rectangles. Let denote the radius at which the index will be queried. Rectangles of zero width or height are handled by exact propagation at every depth (Lemma 5.12); their cost is near-linear. We therefore describe the recursive step for positive-area rectangles.
The algorithm treats sources on the bottom side and sources on the left side separately. We describe min-propagation for sources on the bottom side, whose labels form a labelling on the axis of . The left side is handled by exchanging the roles of the axes, and max-propagation is symmetric. The construction, summarized in Algorithm 2, has two phases. The search phase selects pieces of that represent . It uses only fresh, equal labels, so it is independent of , and this is what allows a single surrogate to serve all sources. The transfer phase then propagates the actual labels through these pieces with the index.
Algorithm 2 Query in min mode, with side sizes at most
Input: Subcurves of separately prepared ; window bundles at radius with multipliers ; input profiles on
Output: Output profiles forming an -certified min-propagation, with reportable local witnesses
1: if has zero width or height then 2: return exact propagation of 3: end if 4: for each origin side (bottom, then left with the axes exchanged) do 5: Choose and cut at original vertices into chunks of size 6: Select donors of and the represented prefix by the cursor search, using Query with fresh equal labels Lemma 6.1 7: if no donor exists then 8: Record an empty answer for this origin side and continue 9: end if 10: Form the surrogate and its -matching with Lemma 6.2 11: Let carry this origin side's labels on the bottom of , and be unavailable elsewhere 12: for do 13: at radius ; save its right-output records 14: If , form by passing the top profile of across the join wherever both endpoints are -free; set other inputs unavailable 15: end for 16: Transfer the saved right-output records to the right side of through Lemma 6.3 17: If , use the top profile of as the top output of , and otherwise discard it 18: Restrict the outputs to the free output boundary of at radius , and apply 19: end for 20: return the pointwise minimum of the two origin-side answers
6.1 The cursor search
The search phase looks for subcurves of that match the chunks of , in order. Its difficulty is that it must not commit to any particular source, because the actual labels are unknown at this point. It therefore uses all free bottom points as sources, and it moves a cursor along that never overtakes any true path.
Cut at original vertices into chunks, each of size at most . A test for chunk with left end and width runs Query at radius on the rectangle , with every free point of its bottom side as a source of label 0 and unavailable labels elsewhere. The test succeeds if some point of its top side receives a finite label. The cursor search maintains a cursor , which is initially . For chunk , it runs tests with left end and widths , the last of which reaches , until a test succeeds. It then proceeds as follows.
- If a test succeeds, let be the smallest x-coordinate of an accepted top point, and let be a local witness for this point. It starts at a bottom point , and we set .
Let be the right end of the last failed test, or if no test failed. We set and continue with chunk , unless .
- If even the test that reaches fails, the search stops. If this test accepts a point of the right side, let be the highest such point, let be a local witness for , starting at a bottom point , and let . Otherwise, we set , and chunk receives no donor.
If all chunks succeed, we set . The selected subcurves are the donors, and we let be their number. All accepted points above are attained, because the outputs of are profiles whose finite parts are closed.
The two pieces of information gathered for a chunk play complementary roles. The accepted exit yields a representative for the chunk, and the failed tests show that every true path must have advanced beyond . Taking the maximum of the two keeps the cursor behind all true paths, which is the main point of the next lemma.
Lemma 6.1 (Cursor search). The donors satisfy , and is an Ar-matching of and the th chunk, or of and for a final partial chunk. If is a bottom point, is an output point, and , then , and if lies on the top side, then . After straightening inside cells, the witnesses have segments in total. The search takes time.
Proof. The tests for chunk have left end , so , which proves the ordering. The matching property follows from the soundness of .
For the coverage claim, fix a bi-monotone path from to in , and for every , let be the smallest with . In particular, . We show by induction that chunk succeeds and whenever . Suppose that . The portion of from to is a bi-monotone path in from a free bottom point to a top point of every test for chunk whose right end is at least . By the completeness of , every such test succeeds and accepts the top point at . Hence the test that reaches succeeds, every failed test has right end , and the successful test satisfies , either because it accepts or because its right end is less than . Thus .
If lies on the top side, it follows that every chunk succeeds, so . Now let lie on the right side with . By the induction, chunks succeed and . If chunk also succeeds, then . Otherwise, the test for chunk that reaches contains the portion of from to , so by completeness it accepts , and .
For the size bound, the ordering shows that the donors have disjoint interiors, so they meet original edges in total, and the chunks meet . By cell convexity, straightening a matching inside the cells it visits does not increase its cost and leaves a number of segments that is linear in the sizes of the two subcurves.
It remains to bound the running time. Let be the largest width tested for chunk . If some test failed before chunk succeeded, the last failed test has width at least , so the cursor advances by at least . Otherwise . The final, unsuccessful chunk, if any, has . Hence , and the large tests are paid for by the progress of the cursor. A test of width on a chunk of size at most costs by induction. The widths tested for chunk sum to , and there are tests, so chunk costs . Summing over at most chunks and using gives , which includes the one witness reported per chunk.
6.2 The surrogate and the transfer of right outputs
The donors give pieces of that match consecutive chunks of the represented prefix . Joining them yields a surrogate for this prefix within distance .
Lemma 6.2 (Surrogate). Let be the curve formed by the donors in order, where consecutive donors are joined by the segment from to . Then the witnesses , together with the joining segments matched to while pauses, form an Ar-matching of and with segments.
Proof. The point is matched to by , and is matched to by . Hence both points are within distance of , and so is the joining segment, because balls are convex. Concatenating the pieces gives .
Each donor lies in , so SelfQuery uses a single prepared host window containing both subcurves. We use a window of size in the bundle of at radius (Lemma 4.3). The joining segments, on the other hand, are not subcurves of the host and are never given to the index. Instead, they are handled by the junction rule of Algorithm 2, which keeps the position on fixed while the surrogate crosses the joining segment. This is valid because of convexity. If both and are -free, then the whole joining segment lies in the ball of radius around , so the vertical segment at across the joining segment is a bi-monotone path of cost at most in . On each edge of , the admissible values of form an interval, so the junction restricts each profile with operations of Lemma 5.9.
It remains to transfer outputs on the right side of back to the axis of . Here we use the special form of the outputs of a self-query. Since all sources lie on the bottom side, every source is coordinatewise before every right output, and the right outputs consist of a constant number of scalar records per edge.
The witness stored by a self-query is local to . Following its predecessor records through the preceding donors and joins gives a witness from the bottom of . This traceback stops at the input of the current general query; it does not expand any earlier history of the caller's labels.
Lemma 6.3 (Right-output records). Consider a self-query in min mode on whose input labels are finite only on the bottom side. Then on every right output edge, the output profile is the minimum of records, each consisting of a label, a closed interval of the edge on which it is valid, and a decomposition. All records of all donors can be mapped through in time, where a record that is valid on is mapped to the interval of , split at the original vertices of . If the record has a concatenated witness of cost at most from the bottom of , then for every , the mapped record has a witness to in of cost at most . The analogous statements hold in max mode, with maxima in place of minima.
Proof. On a right output edge , every bottom point is coordinatewise before every point of . The only finite labels on the left side are those carried up from the bottom-left corner by , and they are constant along the left side. Hence, in Lemma 5.8 applied with the axes exchanged, is a single record and is constant on its support. Moreover, contributes one more constant, carried from the edge below, and the vertex terms contribute singleton records. We retain all of these records, including those that do not attain the minimum.
Since is a bi-monotone path, is the interval from the lowest matched to to the highest matched to . Scanning the records of each donor and the segments of in order, together with the original vertices of , computes all images. At any point of , only records are active. There are records and vertex events, which gives the time bound.
For the witness, let and choose with . The witness of the record is a matching of and of cost at most , where is its source on the input boundary of the general query, and the prefix of that ends at is a matching of and of cost at most . Composing through gives a matching of and , that is, a bi-monotone path from to in of cost at most .
Retaining records that do not attain the minimum matters when a single point of is matched to an interval of , or vice versa, because a record that loses at one point of may still be the best one at some point of . After the transfer, each mapped record is intersected with the free intervals of the right side of at radius , which are closed, and it is inserted into the right-output profile of as a minimum with a constant on a final segment of its edge, followed by . This takes time. In particular, no long profile is ever re-parameterized through . Long profiles on the top side stay on the axis of , and only records per edge change axes.
6.3 Proof of Theorem 4.4
We now prove the theorem for , assuming that it holds for . The proof follows the two phases of the algorithm. A true path is first transformed, through the surrogate matching, into a path in that the transfer phase follows piece by piece. For soundness, the transfer phase produces witnesses in , which are transformed back by one composition with .
We begin with completeness. Let be a bottom point, an output point of , and a bi-monotone path from to in . By Lemma 6.1, , and in particular donors exist. Choose with , and if is a cut point, choose in a donor. The path is a matching of and of cost at most , and the prefix of that ends at is a matching of and of cost at most . Composing through gives a bi-monotone path from to in of cost at most . We synchronize the two matchings by sweeping the parameter of ; at each pause, we first advance along and then along . In particular, at a cut point , the whole joining segment is traversed at a fixed . Every point on this part of satisfies .
We show by induction over the donors that the label at the point where leaves is at most . The portion of inside joins an input point to an output point at cost at most . For , the corresponding bottom point carries by the initialization of . For , it is reached by the vertical traversal of a joining segment at some at which both endpoints of the segment are -free, so the junction rule passes the top label at , which is at most by induction. The completeness of the self-query at radius then carries this bound to the exit point.
The argument ends differently for the two output sides. If lies on the top side, then , is the end of , and ends at on the top side of . Hence the top output of at is at most . If lies on the right side, then ends at on the right side of the rectangle that contains . Its output there is at most , so some record that is valid on an interval has label at most , and its image contains . The point is -free, so it survives the final restriction, and only decreases labels. Hence the bottom-origin answer at is at most . The symmetric argument applies to sources on the left side, and taking the pointwise minimum of the two answers preserves completeness.
Next, we prove soundness. Consider a finite output label at in the bottom-origin answer. The left-origin answer is symmetric. Following its record backwards gives local witnesses of self-queries, each of cost at most by Definition 4.1, joined by vertical traversals of joining segments, each of cost at most . Their concatenation is a bi-monotone path in of cost at most that starts at a bottom point whose label equals the output label. If lies on the top side, this path ends at , and is a matching of all of and . Composing through gives a path from to of cost at most . If lies on the right side, Lemma 6.3 gives the same bound. The final restriction and add only -free portions of the boundary. Since , the answer is -certified, with a local witness inside from an input point carrying the returned label. Note that the cost of the witness does not depend on the number of donors, because the pieces are concatenated and only the final composition adds costs.
We now bound the running time. Let be the chunk size. The cursor search costs by Lemma 6.1. Its tests are general queries between subcurves of and , and they use the bundles with multipliers . There are at most self-queries at radius , each on a prepared window of size , for a total of , and the multiplier belongs to . The junctions cost . The record transfer, the final restriction and closure, and the merge of the two answers cost , because on a top edge the bottom-origin answer is one profile and the left-origin answer consists of records per edge, and vice versa on a right edge. Finally, a local witness follows at most local witnesses of self-queries, each reported in time, and one composition with . In total, the running time is . The first term decreases with and the second increases, so we balance them. By Lemma 4.5, , so lies in , and the choice makes both terms equal to , since
If has fewer than edges, we use single-edge chunks, which only decreases both terms. The geometric computations, namely the tests, donors, , junction intervals, and record domains, use only fresh labels or the label-independent maps of the index, so they are independent of .
It remains to handle unbalanced rectangles. Let , the other case being symmetric. We cut into consecutive windows of size , and we apply the balanced algorithm with to in order. The input of consists of the original labels on its bottom side, and on its left side of the original left labels if , and of the right output of otherwise. This is network propagation on a grid, so it is -certified by Lemma 5.11, and it takes time. The balanced algorithm for uses only the unbalanced , so the induction is well founded.
Finally, and give . The search tests call at radius and use its bundles with multipliers ; the new self-queries add the multiplier . Thus suffices. This completes the proof of Theorem 4.4.
7 The outer recursion: constructing indexes
This section proves Lemma 4.3 and Theorem 4.6, and it verifies the properties of the base index described in Section 4.1. Both index constructions follow the same pattern. During preprocessing, they store boundary maps of selected rectangles. At query time, they combine the stored maps, together with a few maps computed on demand, by network propagation, and finally they compile the whole queried rectangle into a single boundary map, as required by Definition 4.1. This last map is prepared independently of the caller's labels. Applying it returns the output profiles and local witness records required by SelfQuery, keeping the interface uniform across rounds. Propagating the caller's labels directly through the network would also be certified, but then the right outputs could have many steps even for sources on the bottom side, which would break the transfer of Lemma 6.3. We start with the window bundles.
Proof of Lemma 4.3. At scale , there are windows and adjacent unions, each of size , so their indexes cost per radius. Summing over the scales and the radii in gives the first claim. A subcurve of size meets at most two consecutive aligned windows of length , where , and their union is a prepared window of size .
7.1 Compiling a routine
Both constructions repeatedly turn a propagation routine into a boundary map. The routine is run three times with fresh labels on the representative ports, and the results are combined into a finite summary. The original runs are retained, so that the map can later report witnesses.
Lemma 7.1 (Compiling a routine). Let be a rectangle of size , and let compute -certified min-propagation and max-propagation on and on its reversal, for labels given at ports, with geometric computations that are independent of the labels. Suppose that runs in time and reports a local witness in time . Then in time, one can compute an -summary of size on the representative ports of , retaining the states needed to report witnesses. Afterwards, given input profiles in the chosen mode (Definition 5.7), propagation through the boundary map , which has raw factor and factor , takes time, and a witness for any record that it creates is reported in time.
Proof. We give the representative input ports their ranks, with unavailable labels elsewhere, and run three times, namely for min-propagation and max-propagation of the ranks, and for reverse activity from the representative output ports on the reversal of . Lemma 5.3 turns the results into an -summary of the form (5.1) in additional time, and propagation through is Lemma 5.10. A witness for a created record is obtained by splicing at most three witnesses of the runs (Lemma 5.3), each reported from the retained state of the runs, followed by one clamp and two boundary paths (Lemma 5.6).
7.2 The base index
We now verify that the base index described in Section 4.1 is an index of type . On a host of size , it stores boundary maps obtained from exact propagation on products of dyadic intervals. These maps have raw factor 1 and factor 5. This costs quadratic time, but it reduces a query to stored maps together with exact propagation in thin strips.
Let be a host of size , and consider the dyadic intervals of original edges. During preprocessing, for every ordered pair of dyadic intervals, allowing either orientation on each axis, we compile exact propagation on (Lemma 5.12) into a boundary map with raw factor 1 (Lemma 7.1). For a fixed pair of scales and , there are such products, each compiled in time. Thus each pair of scales costs , and the pairs of scales cost in total. The four choices of orientations change only the constant factor.
Now consider a self-query on subcurves and of the prepared host, in either orientation. If its rectangle has zero width or height, we compile exact propagation on the whole rectangle and apply the caller's labels, in near-linear time. Otherwise, on each axis, we separate the at most two partial original edges at the ends and cover the remaining interval by maximal dyadic intervals. This partitions into rectangles of two kinds, namely products of two dyadic intervals, whose stored maps have factor 5, and strips of width one original edge, on which we use exact propagation. Since the dyadic intervals on each axis are disjoint, the products have total perimeter , and the strips meet cells in total. Network propagation (Lemma 5.11, with the rectangles ordered by the sum of their column and row indices) is therefore -certified and takes time. A local witness crosses stored products and strips, and each product witness consists of at most three exact witnesses of total size , so it is reported in time.
We compile this network routine on by Lemma 7.1, with and , and we propagate the caller's labels through the resulting boundary map, which has factor 9. The self-query takes time, including the report of a local witness, and the preprocessing takes time. This shows that the base index has type .
7.3 The index upgrade
We now prove Theorem 4.6. Fix the given index of type , the depth , and with , and write . The new index is built from blocks of size . A block is a subcurve of at most consecutive original edges of the host, and a canonical interval is a node of a balanced binary tree over the sequence of blocks. An oriented block or canonical interval is one of these subcurves in either its original or reversed orientation. We prepare both orientations on each axis, so all four combinations required by the index interface are available. This costs only a constant factor. The construction is described by Algorithms 3 and 4.
Algorithm 3 Build with block size
Input: A host and radius ; the old index algorithms and Query
Output: A label-independent self-index for and its reversal, with reportable witnesses
1: if has one vertex then
2: return the index consisting of the one-point boundary map
3: end if
4: Partition into consecutive blocks of at most edges each, and build interval trees for both orientations
5: for each block do
6: Build the window bundle of for the given index, with multipliers Lemma 4.3
7: end for
8: for each ordered pair of oriented blocks do
9: Compile Query into a primitive boundary map factor
10: end for
11: for each ordered pair of oriented canonical intervals do
12: Compile network propagation through the primitive maps inside into a canonical boundary map factor
13: end for
14: return the bundles, trees, maps, and retained compilation states
All compilations use fresh labels, independently of . Only the last step of SelfQuery applies the caller's labels. Although all blocks belong to one host, each invocation of Query uses only the separately prepared bundles of its two blocks.
For a positive-area query, the partition used in Algorithm 4 is not a grid, so we describe it in more detail. The end blocks and the middles of the two axes define a grid of zones. The middle zone is a grid of canonical products. Every other zone has one side inside a single block, and it is cut by the block boundaries of the other side into a single row or column of fringe rectangles. Numbering the zones by the sum of their indices, and the rectangles inside each zone by the sum of their column and row indices, satisfies the condition of Lemma 5.11. A bi-monotone path visits at most five zones, crosses canonical products of distinct canonical intervals on each axis, and visits fringe rectangles.
The next lemma analyzes the construction for a general block size . The preprocessing cost
Algorithm 4 SelfQuery
Input: The index returned by Build ; subcurves of or its reversal; input profiles in the chosen mode
Output: Output profiles forming an -certified propagation, with reportable local witnesses
1: if has zero width or height then
2: Compile exact propagation on and return its propagation of
3: end if
4: Split each of and into an aligned middle, which is a union of whole blocks, and at most two partial blocks at its ends
5: Cover the product of the two middles by products of canonical intervals on each axis
6: Tile the rest of into fringe rectangles, each contained in the product of two blocks
7: Compile Query on every fringe rectangle factor
8: Compile network propagation through the canonical and fringe maps on factor
9: return the output profiles and witness records obtained by applying the resulting boundary map to
has two terms with opposite behavior: the old indexes on the blocks become more expensive as grows, whereas the number of block pairs shrinks.
Lemma 7.2 (Trade-off). For , Algorithms 3 and 4 form an index with factor , preprocessing time , and self-query time .
Proof. Let be the number of blocks. We first account for the primitive maps. The window bundles of the blocks cost by Lemma 4.3, because is a constant. For a pair of blocks, Query uses the bundles of the two blocks, so by Theorem 4.4 it is -certified and runs in time. By Lemma 7.1, the primitive maps cost in total, and each primitive map has factor and is applied in time.
Next, consider the canonical maps. For canonical intervals of and blocks, network propagation through the primitive maps of is -certified by Lemma 5.11 and runs in time. Its local witnesses visit at most primitive rectangles, so they are reported in time. For a fixed pair of tree levels, the products partition the block grid, so their compilation costs by Lemma 7.1, with for each product. Over the pairs of levels, this amounts to , and each canonical map has factor .
Finally, we analyze a self-query. The canonical products used by a query have total perimeter , so applying their maps costs . There are fringe rectangles, each inside the product of two blocks. On such a rectangle, Query uses the bundles of the two blocks, and compiling it costs , for a total of . The network on is therefore -certified (Lemma 5.11), and once the fringe maps are built, one run takes time. A local witness visits fringe rectangles and canonical products, whose perimeters sum to blocks. Expanding the canonical witnesses into primitive ones, it is reported in time. Compiling the network (Lemma 7.1) with and gives a boundary map of with raw factor and factor , which is independent of . Propagating through this map costs , and every created record has a local witness of cost at most , reported in time. Arbitrary real endpoints of and only affect the end blocks, which are handled by fringe rectangles.
The approximation factor of the new index does not depend on the height of the interval tree.
Canonical maps are compiled directly from primitive maps, never from other canonical maps. Hence a witness through the middle zone concatenates primitive witnesses, with one clamp for the canonical product and one for the whole query, however many tree levels lie between them.
Proof of Theorem 4.6. We choose , which balances the two terms of the preprocessing time in Lemma 7.2. Since , the exponent lies in , and h can be computed with arithmetic operations by doubling and binary search. With this choice,
and the self-query time is . By Lemma 7.2, the new index has the type stated in (4.2), and it invokes the given index only on blocks and their windows, which have size .
8 The parameters and the proof of the main theorem
This section completes the proof of Theorem 1.1. We first prove that the improvement schedule of Lemma 4.7 is valid, and then we combine the recursions, the decision procedure, and the search over thresholds.
8.1 Choosing the parameters
The proof of Lemma 4.7 has three parts. We first solve the recurrence for the preprocessing excess exponent , showing that rounds bring it below the target while keeping the self-query overhead small. We then check that the same inner depth works in every round. This is the delicate part, because the gap that the inner recursion has to close becomes small as grows. Finally, we bound the approximation factor.
Proof of Lemma 4.7. Since , we have .
We start with the preprocessing excess exponents. The reciprocals satisfy and , so
Hence for every , the sequence is decreasing, and . Since , we have , and therefore
Next, we show that in every round . Together with , this is the claimed inequality. For , we have , so by Lemma 4.5, because . Now let . We need a lower bound on the gap . Using and , we get , and hence, by (8.1), . Since , it follows that
By Lemma 4.5, the inequality is equivalent to , and the right-hand side is at least . Since and , we indeed have .
Finally, we bound the approximation factor. By Theorems 4.4 and 4.6, round produces the factor . Let . Then and , and taking logarithms gives . Hence , and
, because and for .
The factor is doubly exponential because each round raises it to the power , and there are rounds. All exponents used by the algorithm are rational numbers that depend only on , namely , , , and the exponents of Lemma 4.5. For fixed positive integers and , an integer within a constant factor of can be found by doubling and binary search, comparing with , in arithmetic operations. This is how the algorithm computes the block sizes and the numbers of chunks .
8.2 Proof of Theorem 1.1
We first prove that the decision procedure of Section 4.5 is correct.
Proof of Lemma 4.8. The host has size , which gives the running time. The rectangle is a rectangle of the free-space diagram of with itself, and every path considered by a self-query stays inside the queried rectangle, so the joining segment is never used. If , the final corner is -reachable from the initial corner. By completeness, the final corner receives a finite label. Conversely, a finite label at the final corner has a local witness of cost at most from the only source, the initial corner, and this witness is a matching of and . By cell convexity, replacing its portion in each cell by a segment leaves segments and does not increase the cost.
We now combine all ingredients, following Algorithm 1.
Proof of Theorem 1.1. Fix and , and let , and be as in Lemma 4.7. We start with the base index, which has type (Section 7.2). For , we apply Theorem 4.6 to the index of type with depth and . This is allowed because by Lemma 4.7, and since , the result is an index of type . When Build is executed, it prepares the previous index on block windows at the radius multipliers in . For a fixed threshold , the nested construction therefore uses only finitely many multiples of , whose number depends only on .
The final index has type with and . By Lemma 4.8, the procedure Decide with this index is a -approximate decision procedure with running time . Lemma 4.9 therefore returns with in time , because the degree of the hidden polylogarithmic factor depends only on . Setting , Lemma 4.7 gives the stated bound on . All steps are deterministic. The discrete case is Theorem B.1 in Appendix B.
The algorithm also reports a matching that certifies its answer.
Corollary 8.1 (Reporting a matching). The algorithm of Theorem 1.1 also reports, within the same time bound, a matching of cost at most . In the continuous case it is a bi-monotone path with segments, and in the discrete case it consists of pairs of original vertices.
Proof. This matching is part of the output of Lemma 4.9.
9 Conclusion
We gave deterministic constant-factor approximations of the continuous and discrete Fréchet distances in time for every fixed . The algorithm alternates two improvements. An index on one curve speeds up general queries through shared surrogates, and faster general queries in turn make the next index cheaper to build. Label-independent boundary maps and persistent profiles make the output of each improvement reusable by the next one, while preserving the sources needed to report a matching.
The most immediate question is whether the approximation factor can be reduced substantially. Our analysis bounds it by a doubly exponential function of and makes no attempt to optimize this dependence. Achieving a small constant factor, or even a factor polynomial in , in time would connect the regime of this paper with the recent -approximations [vdHO26, Bla26]. A second question is whether a constant factor is possible in polylog time. Our recursion depths are fixed independently of , and letting them grow would also let the approximation factor grow, so a different idea seems necessary. Finally, it would be interesting to understand whether some trade-off between the approximation factor and the running-time exponent is necessary, that is, whether a lower bound rules out a fixed approximation factor in time for every .
AI methodology
We began this project in July 2025 and developed an initial framework for efficiently propagating reachability information, inspired by Andoni and Shekel Nosatzki [AN20]. Balancing preprocessing and query costs to obtain near-linear time for general curves remained unresolved.
We began using AI tools in June 2026, but these early attempts gave near-linear-time constant-factor approximations only in special cases. In September 2026, GPT 6 Astra helped us resolve the remaining technical gaps and complete the analysis. We also used Claude Opus 5.5 and GPT 6 Astra to revise the exposition and proofs. The authors take full responsibility for the paper.
A From decision to approximation
This appendix proves Lemma 4.9. A search over thresholds needs a range of candidate values that contains the distance, and the size of this range must not depend on the coordinates of the input. We therefore first compute, in linear time, a coarse estimate whose ratio to the distance is at most . A binary search over the resulting scales then needs only calls of the decision procedure. Algorithm 5 summarizes the procedure. Throughout, denotes or .
The coarse estimate comes from a very simple matching, which traverses both curves at the same arclength speed. If the curves are close, then matched points of an optimal matching have similar arclength positions, because every edge of one curve is followed closely by a portion of the other curve of almost the same length. The total discrepancy is at most times the distance, and this gives the following bound.
Lemma A.1 (Seed). In time, one can compute a matching of and of cost with in the continuous case, and a discrete matching of cost with in the discrete case. In particular, if and only if .
Proof. We may remove consecutive duplicate vertices. This does not change , and it does not change either. Indeed, a discrete matching of the reduced sequences expands to one of the original sequences by traversing each run of duplicates while the other index pauses, and a discrete matching
Algorithm 5 The approximation algorithm
Input: Nonempty curves and a -approximate decision procedure satisfying Lemma 4.9 Output: with , and a matching of cost at most 1: Compute the seed matching and its cost Lemma A.1 2: if then return 3: end if 4: Let be the least integer with , and let 5: if the procedure answers YES at then return and its matching 6: end if 7: , , and with the seed matching 8: while do 9: 10: if the procedure answers YES at then 11: , and if , set with the reported matching 12: else 13: 14: end if 15: end while 16: return and its matching
of the original sequences projects to the reduced ones. Neither operation creates a new pair of positions. If one curve becomes a single point, a linear scan computes exactly, by convexity of the distance along an edge. Otherwise, let and be the cumulative arclengths at the vertices of and , and let and be the arclength parameterizations, which are 1-Lipschitz.
We first show that matched points have similar arclength positions. Let be a -matching of and , and let have arclength positions and . We claim that . Cut at its vertices into at most straight pieces, and choose, monotonically along , a partner on for each cut point. By the triangle inequality, each piece is at most longer than the portion of between the partners of its endpoints, and these portions are interior-disjoint subcurves of . Summing gives , and by symmetry, . The same argument applies to discrete matchings, by summing over the steps.
For continuous curves, we match with for , which is a matching. Let be an optimal matching of cost , and fix . By symmetry, we may assume . The point has a partner on at some arclength with . Clamping to does not increase its distance to , so
Between consecutive arclength breakpoints, both positions are affine in , so their distance is convex. Hence is the maximum over the breakpoints and is computed by a merge in time.
For the discrete seed, we pair, for every value in the merged list of breakpoints, the vertex of whose arclength is nearest to with the vertex of whose arclength is nearest to , breaking ties towards the smaller index. Both indices are nondecreasing in . If the index on jumped from to or more between consecutive values , then , which contradicts the choice of consecutive values. The same holds for , so after removing repeated pairs, we obtain a discrete matching. Consider a pair chosen at , with -index , and let be a partner of in an optimal discrete matching. Then , hence , and therefore . Values are handled symmetrically.
In both cases, is the cost of an actual matching, so , which also shows that if and only if .
With the seed, the proof of Lemma 4.9 is a binary search that relies only on the certificate of each individual answer. This is important because an approximate decision procedure may answer YES at one threshold and NO at a larger one, as long as both answers are correct.
Proof of Lemma 4.9. We use Algorithm 5. If , the seed is an exact answer. Otherwise, the choice of and Lemma A.1 give . If the procedure answers YES at , its matching certifies . Otherwise , and the loop maintains the invariant that and , together with a matching of cost at most . Initially, . A NO answer at certifies , and a YES answer at comes with a matching of cost at most , so both updates preserve the invariant. At termination, , so . There are calls, and the seed takes time.
B The discrete Fréchet distance
This appendix adapts the algorithm to the discrete Fréchet distance of the vertex sequences of P and Q. The two recursions and their time bounds carry over unchanged. The discrete setting is in fact simpler, because the boundary of a rectangle consists of finitely many vertex pairs. Hence the lift and the persistent profiles of Sections 5.2 and 5.3 are not needed, and the approximation factors become smaller.
Theorem B.1 (Discrete version). Theorems 4.4 and 4.6, the properties of the base index (Section 4.1), and Lemma 4.8 hold for the discrete Fréchet distance, with the same running times and with approximation factors that are at most those of the continuous statements. Consequently, Theorem 1.1 and Corollary 8.1 hold for .
We first describe the setting. A discrete rectangle is a set of index pairs, with side sizes , , and . Its input boundary consists of its left column and bottom row, and its output boundary consists of its top row and right column. A pair is -free if , and means that some sequence of free pairs from to inside the rectangle has all its steps in . Labels live on the boundary pairs and are stored as explicit arrays. Min- and max-propagation use the same labels, unavailable values, and local witness guarantee as in Section 2.
Boundary maps become simpler in this setting. All boundary pairs serve as ports, so a boundary map is just a finite summary of the form (5.1), together with the forward closures along the input and output boundaries, which consist of steps and . Lemma 5.1 splices at a grid point, so Lemma 5.3 applies verbatim. No lift is needed, and hence a summary with factor yields a boundary map with factor rather than . Propagation through such a map takes one range-extremum query per output pair, that is, time in total.
Networks of rectangles also carry over. Partition a discrete rectangle into discrete rectangles that share boundary rows and columns, and assign every pair to a rectangle in the half-open sense of the proof of Lemma 2.2. If a pair is assigned to , then and , unless the rectangle touches the outer boundary. Therefore, the next pair of a step , , or lies in the same closed rectangle. Every step thus lies in a single rectangle, the decomposition in the proof of Lemma 5.11 applies without inserting intermediate pairs, and network propagation is certified as before. The exact base is the dynamic program of Lemma 5.12, with time and witnesses of length .
The interfaces retain their roles: Build returns an index on the host and its reversal; SelfQuery propagates labels through a single map prepared independently of those labels; and Query uses the two separately prepared curves. The outputs of both queries are label arrays with reportable local witnesses. In this appendix, the index definition uses , and a self-query map has raw factor at most D, since the continuous lift and its additive 4 are absent.
The index constructions then carry over. The analysis of the base index in Section 7.2 and the proof of Lemma 7.2 apply verbatim, except that every compilation keeps its factor. Hence the base index has factor 1, and the upgrade produces factor instead of . Both are at most the corresponding continuous factors.
For the inner recursion, we compose discrete matchings through their common sequence. Let be a discrete matching of sequences and of cost , and let be a discrete matching of and of cost . We sweep the indices of , and at each index, we first advance through the indices of that are matched to it and then through those of . When the index of advances, each of and advances its other index by zero or one, so after removing repeated pairs, all steps lie in . Every visited pair of indices of and is matched to a common index of , so the result is a discrete matching of cost at most .
With this composition, the inner recursion carries over as well. The cursor search is unchanged, since the proof of Lemma 6.1 uses only the completeness and soundness of and monotonicity. The surrogate is the concatenation of the vertex sequences of the donors , where two consecutive donors that share their endpoint occurrence are identified there. The last vertex of and the first vertex of are both within distance of the vertex , so the witnesses , joined by the step between these two vertices while stays at , form a discrete -matching of and the represented prefix of .
At a junction, a label at host index on the top row of is passed to the free pairs at host indices and on the bottom row of . These two transfers correspond to the steps and in , and further steps along are handled by the input closure of the next self-query. The rule is sound, because both transfers are legal steps between free pairs. It is also complete, because the composition of a true matching with , constructed as above, advances along first and then crosses the junction step of at a fixed host index. Right outputs are transferred through pair by pair: a pair maps to the interval of indices of that matches to . Since the donors are interior-disjoint, this takes time. The proofs of completeness, soundness, and running time in Section 6 then carry over verbatim, with the factor update and the same exponents.
Finally, for Lemma 4.8, the host is the concatenation of the vertex sequences of and , the only source is the initial pair, and a discrete matching visits distinct pairs. Together with the discrete case of Lemma A.1, this proves Theorem B.1.
C Further related work
Godau [God91] gave an early algorithm for the continuous Fréchet distance with running time . Alt and Godau [AG95] improved this to by expressing the decision problem as reachability in the free-space diagram. Their decision procedure became the starting point for many later algorithms. For the discrete distance, Eiter and Mannila [EM94] gave a dynamic program that computes the optimum directly in time. These bounds remained the benchmarks for general curves for roughly two decades.
Subsequent exact algorithms obtained savings through more efficient processing of the free-space diagram. Agarwal, Ben Avraham, Kaplan, and Sharir [ABAKS13] gave the first subquadratic algorithm for the planar discrete distance, with running time on a word RAM. Buchin, Buchin, Meulemans, and Mulzer [BBMM14] developed faster planar continuous algorithms on both pointer machines and word RAMs; the latter computes the distance in expected time. Cheng and Huang [CH25] subsequently reported a subquadratic algorithm in arbitrary fixed dimension. More recently, Chan and Hair [CH26] shaved two logarithmic factors from quadratic time for both versions: for two -vertex curves, their bounds are up to factors polynomial in . Thus the progress in exact computation has largely been in logarithmic improvements.
The conditional lower bounds give a complementary picture. Under SETH, Bringmann [Bri14] ruled out strongly subquadratic algorithms for both versions in the plane, even with a sufficiently small constant approximation factor and even for imbalanced inputs. Bringmann and Mulzer [BM16] extended this hardness to the discrete distance in one dimension. Buchin, Ophelders, and Speckmann [BOS19] then showed that any approximation factor below three remains hard for both versions on one-dimensional curves of comparable sizes. Blank [Bla26] recently strengthened the approximation lower bounds for imbalanced inputs, with the threshold depending on the dimension and metric. These results leave room for faster algorithms with larger constant approximation factors.
The one-dimensional imbalanced case also admits a faster exact algorithm. Blank and Driemel [BD24] obtained time by exploiting the order of the significant minima and maxima along the curves. Their result is formulated as a distance oracle: after preprocessing of the longer curve, an -vertex query can be answered in time. The query may also specify a subcurve of the preprocessed curve. This is particularly effective when one curve is much shorter than the other, a setting not captured by considering only two curves of the same size.
For geometrically restricted inputs, much stronger approximation guarantees were known earlier. Driemel, Har-Peled, and Wenk [DHPW12] introduced -packed curves and gave a -approximation in time. Their analysis uses the packing condition to limit how many parts of the simplified curves need to be compared. Bringmann and Künnemann [BK17] improved the dependence on the accuracy parameter to , matching a conditional lower bound in sufficiently high fixed dimension up to lower-order factors. Blank, Driemel, Har-Peled, and Richter [BDHPR26] recently obtained linear time for fixed and , for both continuous and discrete distances. These results show how geometric structure permits high accuracy without quadratic running time.
For arbitrary curves, the first strongly subquadratic approximation algorithms had factors that grew with the input size. Bringmann and Mulzer [BM16] gave an -approximation of the discrete distance on two -vertex curves in time. Chan and Rahmati [CR18] improved this to , reaching time with a factor of order . For the continuous distance, Colombe and Fox [CF21] obtained time for . In particular, their algorithm gives an -approximation in time. They also provided a general way to turn approximate decision procedures into approximation algorithms, with only a logarithmic time overhead.
Van der Horst, van Kreveld, Ophelders, and Speckmann [vdHvKOS23] extended the continuous trade-off to all , allowing strongly subquadratic time with an approximation for arbitrarily small fixed . Van der Horst and Ophelders [vdHO24] improved the logarithmic factors using truncated smoothing, a simplification that removes short oscillations and reduces the amount of free space that must be explored. The combined journal version [vdHvKOS25] gives time, with a stronger trade-off in one dimension. Despite these improvements, a polynomial saving in the running time still required a polynomial approximation factor.
Cheng, Huang, and Zhang [CHZ25] gave the first constant-factor approximation in strongly sub-quadratic time for arbitrary curves. Their randomized -approximation runs in time for fixed and applies to both versions. It combines preprocessing and sampling to propagate approximate reachability across blocks of the free-space diagram. Although the improvement in the exponent is small, the approximation factor is independent of the input size. Liu and Wang [LW26] improved the factor to and the running time to for the continuous distance and for the discrete distance. Their algorithms are also randomized and improve how approximate comparisons between subcurves are found and reused.
Two further results achieve factor with complementary running-time bounds. Blank [Bla26] gives time for both versions, which is near-linear when . The same work gives a 2-approximation for the discrete distance in one dimension in time. Van der Horst and Ophelders [vdHO26] obtain a deterministic -approximation in time, improving the bound for curves of comparable sizes and nearly matching the lower bound on the factor. Their framework applies to continuous and discrete paths, and also to paths in more general metric spaces under suitable free-space assumptions. Its use of preprocessing to answer reachability queries is the starting point for our recursive framework.
A similar progression occurred for edit distance. Chakraborty, Das, Goldenberg, Koucký, and Saks [CDG+18] first obtained a constant-factor approximation in strongly subquadratic time, with running time for strings of length . Andoni and Shekel Nosatzki [AN20] subsequently achieved time for every fixed , with a constant factor depending on . Their algorithm builds approximate distance oracles for substrings of increasing lengths, providing a useful precedent for repeatedly improving the data structures used by an approximation algorithm. Our result establishes the analogous near-linear-time guarantee for Fréchet distance.
References
[ABAKS13] Pankaj K. Agarwal, Rinat Ben Avraham, Haim Kaplan, and Micha Sharir. Computing the discrete Fréchet distance in subquadratic time. In Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2013), pages 156–167. Society for Industrial and Applied Mathematics, 2013. doi:10.1137/1.9781611973105.12.
[AG95] Helmut Alt and Michael Godau. Computing the Fréchet distance between two polygonal curves. International Journal of Computational Geometry & Applications, 5(1-2):75–91, 1995. doi:10.1142/S0218195995000064.
[AN20] Alexandr Andoni and Negev Shekel Nosatzki. Edit distance in near-linear time: It's a constant factor. In 61st Annual IEEE Symposium on Foundations of Computer Science (FOCS 2020), pages 990–1001. IEEE, 2020. arXiv:2005.07678v2, doi:10.1109/FOCS46700.2020.00096.
[BBMM14] Kevin Buchin, Maike Buchin, Wouter Meulemans, and Wolfgang Mulzer. Four soviets walk the dog—with an application to Alt's conjecture. In Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2014), pages 1399–1413. Society for Industrial and Applied Mathematics, 2014. doi:10.1137/1.9781611973402.103.
[BD24] Lotte Blank and Anne Driemel. A faster algorithm for the Fréchet distance in 1D for the imbalanced case. In 32nd Annual European Symposium on Algorithms (ESA 2024), volume 308 of Leibniz International Proceedings in Informatics (LIPIcs), pages 28:1–28:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. arXiv:2404.18738, doi:10.4230/LIPIcs.ESA.2024.28.
[BDHPR26] Lotte Blank, Anne Driemel, Sariel Har-Peled, and Marena Richter. The quick dog jumps the log, 2026. arXiv:2607.09917v2.
[BK17] Karl Bringmann and Marvin Künnemann. Improved approximation for Fréchet distance on c-packed curves matching conditional lower bounds. International Journal of Computational Geometry & Applications, 27(1-2):85–119, 2017. arXiv:1408.1340, doi:10.1142/S0218195917600056.
[BKN21] Karl Bringmann, Marvin Künnemann, and André Nusser. Discrete Fréchet distance under translation: Conditional hardness and an improved algorithm. ACM Transactions on Algorithms, 17(3):25:1–25:42, 2021. arXiv:1810.10982v4, doi:10.1145/3460656.
[Bla26] Lotte Blank. Fréchet distance in the imbalanced case. In 42nd International Symposium on Computational Geometry (SoCG 2026), volume 367 of Leibniz International Proceedings in Informatics (LIPIcs), pages 17:1–17:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026. arXiv:2602.09551, doi:10.4230/LIPIcs.SoCG.2026.17.
[BM16] Karl Bringmann and Wolfgang Mulzer. Approximability of the discrete Fréchet distance. Journal of Computational Geometry, 7(2):46–76, 2016. doi:10.20382/jocg.v7i2a4.
[BOS19] Kevin Buchin, Tim Ophelders, and Bettina Speckmann. SETH says: Weak Fréchet distance is faster, but only if it is continuous and in one dimension. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2019), pages 2887–2901. Society for Industrial and Applied Mathematics, 2019. arXiv:1807.08699, doi:10.1137/1.9781611975482.179.
[Bri14] Karl Bringmann. Why walking the dog takes time: Fréchet distance has no strongly subquadratic algorithms unless SETH fails. In 55th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2014), pages 661–670. IEEE, 2014. arXiv:1404.1448, doi:10.1109/FOCS.2014.76.
[CDG+18] Diptarka Chakraborty, Debarati Das, Elazar Goldenberg, Michal Koucký, and Michael Saks. Approximating edit distance within constant factor in truly sub-quadratic time. In 59th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2018), pages 979–990. IEEE, 2018. arXiv:1810.03664, doi:10.1109/FOCS.2018.00096.
[CF21] Connor Colombe and Kyle Fox. Approximating the (continuous) Fréchet distance. In 37th International Symposium on Computational Geometry (SoCG 2021), volume 189 of Leibniz International Proceedings in Informatics (LIPIcs), pages 26:1–26:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPIcs.SoCG.2021.26.
[CH25] Siu-Wing Cheng and Haoqiang Huang. Fréchet distance in subquadratic time. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2025), pages 5100–5113. Society for Industrial and Applied Mathematics, 2025. arXiv:2407.05231, doi:10.1137/1.9781611978322.173.
[CH26] Timothy M. Chan and Isaac M. Hair. Shaving two logs for discrete and continuous Fréchet distance, 2026. arXiv:2610.16360.
[CHZ25] Siu-Wing Cheng, Haoqiang Huang, and Shuo Zhang. Constant approximation of Fréchet distance in strongly subquadratic time. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing (STOC 2025), pages 2329–2340. Association for Computing Machinery, 2025. arXiv:2503.12746v1, doi:10.1145/3717823.3718157.
[CR18] Timothy M. Chan and Zahed Rahmati. An improved approximation algorithm for the discrete Fréchet distance. Information Processing Letters, 138:72–74, 2018. doi:10.1016/j.ipl.2018.06.011.
[DHPW12] Anne Driemel, Sariel Har-Peled, and Carola Wenk. Approximating the Fréchet distance for realistic curves in near linear time. Discrete & Computational Geometry, 48(1):94–127, 2012. arXiv:1003.0460v3, doi:10.1007/s00454-012-9402-z.
[DSST89] James R. Driscoll, Neil Sarnak, Daniel D. Sleator, and Robert E. Tarjan. Making data structures persistent. Journal of Computer and System Sciences, 38(1):86–124, 1989. doi:10.1016/0022-0000(89)90034-2.
[EM94] Thomas Eiter and Heikki Mannila. Computing discrete Fréchet distance. Technical Report CD-TR 94/64, Christian Doppler Laboratory for Expert Systems, Technische Universität Wien, 1994. URL: https://www.kr.tuwien.ac.at/staff/eiter/et-archive/files/cdtr9464.pdf.
[God91] Michael Godau. A natural metric for curves—computing the distance for polygonal chains and approximation algorithms. In STACS 91, volume 480 of Lecture Notes in Computer Science, pages 127–136. Springer, 1991. doi:10.1007/BFb0020793.
[IP01] Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-SAT. Journal of Computer and System Sciences, 62(2):367–375, 2001. doi:10.1006/jcss.2000.1727.
[LW26] Lenny Liu and Jihan Wang. (5 + ε)-approximation of Fréchet distance in strongly subquadratic time, 2026. arXiv:2607.06864v2.
[Ope26] OpenAI. The exponential time hypothesis is false. Preprint, October 25, 2026. URL: https://github.com/openai/math/blob/main/preprints/The-Exponential-Time-Hypothesis-is-False-October-25-2026/paper.pdf.
[vdHO24] Thijs van der Horst and Tim Ophelders. Faster Fréchet distance approximation through truncated smoothing. In 40th International Symposium on Computational Geometry (SoCG 2024), volume 293 of Leibniz International Proceedings in Informatics (LIPIcs), pages 63:1–63:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.SoCG.2024.63.
[vdHO26] Thijs van der Horst and Tim Ophelders. A strongly-subquadratic -approximation for the Fréchet distance for paths in metric spaces. In 34th Annual European Symposium on Algorithms (ESA 2026), volume 388 of Leibniz International Proceedings in Informatics (LIPIcs), pages 111:1–111:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026. arXiv:2607.08893v2, doi: 10.4230/LIPIcs.ESA.2026.111.
[vdHvKOS23] Thijs van der Horst, Marc van Kreveld, Tim Ophelders, and Bettina Speckmann. A subquadratic -approximation for the continuous Fréchet distance. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2023), pages 1759–1776. Society for Industrial and Applied Mathematics, 2023. arXiv:2208.12721.
[vdHvKOS25] Thijs van der Horst, Marc van Kreveld, Tim Ophelders, and Bettina Speckmann. Faster Fréchet distance approximation through truncated smoothing. Journal of Computational Geometry, 16(2):265–298, 2025. arXiv:2401.14815v2, doi:10.20382/jocg.v16i2a9.
[Wil05] Ryan Williams. A new algorithm for optimal 2-constraint satisfaction and its implications. Theoretical Computer Science, 348(2-3):357–365, 2005. doi:10.1016/j.tcs.2005.09.023.