Source-linked AI summary

Approximating the Fréchet Distance for Realistic Curves in Near Linear Time

Anne Driemel, Sariel Har-Peled, Carola Wenk

arXiv:1003.0460v3cs.CG

TL;DR

The paper addresses efficient approximation of Fréchet distance for polygonal curves, where exact computation can be costly. It combines simplification with free-space analysis, introduces c-packed curves, and obtains near-linear behavior for c-packed inputs alongside related bounds for other realistic curve families.

  • Problem

    The paper seeks practical approximation of Fréchet distance for curves while addressing the high complexity of free-space diagrams and exact computation.

  • Method

    The algorithm simplifies curves, constructs and searches reachable approximate free-space diagrams, and organizes the search around relevant free-space and simplification events.

  • Results

    The algorithm has near-linear running time in relative free-space complexity, which is linear for c-packed curves and also bounded efficiently for several other curve families.

  • Takeaways & Limitations

    c-packed curves provide a realistic input model under which the approximation algorithm is fast, while the framework also covers low-density, κ-bounded, and closed curves.

  • Takeaways & Limitations

    On contrived curves that cannot be simplified without losing too much information, the free-space diagram can retain quadratic complexity.

Abstract

from arXiv · show

We present simple and practical $(1+\eps)$-approximation algorithm for the Frechet distance between curves. To analyze this algorithm we introduce a new realistic family of curves, $c$-packed curves, that is closed under simplification. We believe the notion of $c$-packed curves to be of independent interest. We show that our algorithm has near linear running time for $c$-packed curves, and show similar results for other input models.

1 Introduction

The paper develops a (1+ε)-approximation algorithm for Fréchet distance using curve simplification and analyzes it through relative free space complexity. It introduces c-packed curves as a realistic input model and proves fast approximation results for c-packed, low-density, and κ-bounded curves.

  • Motivation: The Fréchet distance compares curves using continuous, order-preserving assignments, making it better suited than Hausdorff distance for intrinsic curve structure.It has applications including time warping, speech recognition, handwriting recognition, time-series matching, map matching, and moving-object analysis.
  • Input model: c-packed curves bound the total curve length inside every ball by c times its radius and form a realistic family that is closed under simplification.They may self-cross, revisit locations, and concatenate, unlike κ-bounded curves in general.
  • Algorithm: The paper presents a (1+ε)-approximation algorithm that simplifies curves to reduce free-space complexity and solves the decision problem in time linear in relative free-space complexity.The construction uses reachable free space, a fuzzy decider, and event-based search over approximate diagrams.
  • Results: For fixed c and ε, c-packed curves have linear relative free-space complexity; the paper also proves subquadratic bounds for low-density curves and linear bounds for κ-bounded curves.These bounds imply fast Fréchet-distance approximation for the corresponding curve families.

2 Preliminaries

The preliminaries define Fréchet distance through reparameterizations and characterize it with monotone paths in a free-space diagram. They also introduce free-space events and a linear-time greedy curve simplification.

  • Fréchet distance: A reparameterization is a bijective continuous map from [0,1] to [0,1], and the Fréchet distance is the minimum leash width over orientation-preserving reparameterizations.The leash interpretation describes synchronized monotone movement along both curves.
  • Free-space diagram: For polygonal curves, the free-space diagram is a grid whose cells correspond to pairs of curve edges, with each cell containing constant-complexity convex free space.Grid lines correspond to curve vertices, while cell interiors represent edge-pair matches within distance δ.
  • Reachability: The Fréchet distance is at most δ exactly when the free-space diagram contains an (x,y)-monotone path from (0,0) to (1,1).Reachability intervals record boundary points accessible by monotone paths from the origin.
  • Free-space events: Free-space events occur as δ increases, including vertex-edge events that create intervals and monotonicity events that make a monotone subpath feasible.Relevant candidate values also include distances between curve vertices.
  • Curve simplification: The greedy μ-simplification scans vertices, marking the first vertex at least μ from the current marked vertex, and can be computed in linear time.All simplified segments are at least μ long except possibly the final segment.

3.1 Computing the Reachable Free Space

The algorithm represents reachable free space through only reachable grid cells and their boundary reachability intervals. A breadth-first traversal computes this representation, decides whether the Fréchet distance is at most δ, and extracts reparameterizations in time proportional to reachable-free-space complexity.

  • Reachable free space contains the points in the free-space diagram reachable from (0, 0) by an (x, y)-monotone path.
  • The algorithm visits only grid cells intersecting reachable free space and stores reachability intervals on their top and right boundaries.Within each cell, the reachable free space is convex, so these intervals contain the needed information.
  • O(N≤δ(π, σ)) time suffices to represent reachable free space, decide whether dF(π, σ) ≤ δ, and extract reparameterizations.
  • A breadth-first search builds the reachable-cell graph on the fly, propagating reachability intervals to neighboring cells in constant time per cell.
  • Relevant vertex-edge event radii can also be computed in O(N≤δ(π, σ)) time by inspecting the boundaries of reachable cells.

3.2 The Approximate Decision Procedure

The approximate decision procedure simplifies both curves at a scale proportional to εδ, then applies exact reachability testing to the simplified curves. Its output is either a certified approximation, a distance lower than δ, or a distance greater than δ, with complexity governed by relative free-space complexity.

  • The procedure simplifies both input curves to resolution roughly εδ and applies exact decision testing to the simplified curves.The triangle inequality transfers the result from the simplified curves to the original curves.
  • The analysis assumes relative free-space complexity satisfies scale-stability and halving properties, which hold for the curve families considered.For sufficiently well-behaved curves, fixed ε makes this complexity linear in the total number of vertices, yielding near-linear running-time bounds.
  • O(N(ε, π, σ)) time suffices for the fuzzy decision procedure to return one of three correct outcomes.The outcomes are a (1 + ε)-approximation, dF(π, σ) < δ, or dF(π, σ) > δ.
  • If dF(π, σ) ≤ δ, the procedure returns a (1 + ε)-approximation with reparameterizations of width at most (1 + ε)δ.
  • If dF(π, σ) > (1 + ε)δ, the procedure correctly returns dF(π, σ) > δ.

3.3 Searching for the Fr´echet Distance

The search procedure narrows the distance to an approximation interval using fuzzy decisions and approximate event values. It searches geometric intervals and reduces the remaining candidates to vertex-edge events whose number is controlled by reachable free-space complexity.

  • searchInterval obtains a (1 + ε)-approximation when the Fréchet distance lies in a supplied interval [α, β].It uses geometrically spaced values and binary search with the approximate decider.
  • The method avoids dependence on arbitrarily large interval spread by first searching approximate critical values in simplified free-space diagrams.
  • An O(n)-size set of distance values can be computed in O(n log n) time so every vertex-vertex distance is bracketed by two values with ratio at most 2.
  • Every monotonicity-event radius is within a constant factor of either a vertex-vertex distance or a vertex-edge event radius.Thus, after approximating vertex-vertex distances, the search need only retain relevant vertex-edge events.
  • Given an interval containing dF and no vertex-vertex distance inside it, a (1 + ε)-approximation with reparameterizations can be computed in O((n + N) log(N/ε)) time.Here N is the reachable-free-space complexity up to the interval's upper endpoint.

3.4 The Approximation Algorithm

The full algorithm combines approximate event search, simplification, and fixed-simplification refinement to approximate the Fréchet distance. Its running time is expressed through relative free-space complexity, while contrived curves can still retain quadratic reachable complexity.

  • 3.4 The Approximation Algorithm: The basic algorithm aprxFréchetI computes a (1 + ε)-approximation to dF(π, σ).
  • 3.4 The Approximation Algorithm: Simplifications remain unchanged for all radii x, y ∈ (2α, β/2), enabling fixed-simplification refinement within that interval.
  • 3.4.2 Running Time: Its running time can be improved to O(N(ε, π, σ) + N(1, π, σ) log n).
  • 3.4.2 Running Time: The theorem gives the same bound for approximating two curves with total complexity n: O(N(ε, π, σ) + N(1, π, σ) log n).
  • 3.4.2 Running Time: Simplification alone does not guarantee efficiency because contrived curves may remain unsimplifiable and retain a quadratic reachable free-space diagram.

4 The Relative Free Space Complexity of Families of Curves

The paper compares realistic curve families through relative free-space complexity and shows that c-packed curves support near-linear (1+ε)-approximation. It also derives corresponding bounds for low-density and κ-bounded curves, with different structural guarantees.

  • c-packed curves: c-packed curves have linear relative free-space complexity, yielding a near-linear-time (1+ε)-approximation algorithm.For two c-packed curves, N(ε, π, σ)=O(cn/ε), and the resulting running time is O(cn/ε + cn log n).
  • c-packed curves: A c-packed curve has at most cr total length inside any ball of radius r, and simplification preserves this property up to a factor of 6.The simplified curve is 6c-packed, which supports the free-space complexity analysis.
  • c-packed curves: The analysis bounds free-space complexity by charging each nonempty cell to a shorter segment and limiting how many charges one segment can receive.Packing bounds the number of nearby segments that can charge a given segment; cell complexity is constant.
  • low-density curves: Low-density curves are a broader input model than c-packed curves, but they need not be c-packed for any bounded c.Every polygonal c-packed curve is 2c-low-density, whereas low-density curves can have arbitrarily long intersections with a ball through sufficiently small segments.
  • low-density curves: For low-density curves, long intersections force many vertices, enabling separate relative free-space and approximation bounds.The paper states a vertex lower bound for length α inside a cube of side length r and gives corresponding complexity and approximation results.
  • κ-bounded curves: κ-bounded curves admit analogous relative free-space and approximation results, although κ-boundedness permits curves of infinite length within finite diameter.The paper also notes that κ-straight curves are 2κ-packed and that the κ-bounded approximation algorithm has a stated theorem-level running time.

5 Extension to Closed c-packed Curves

The paper extends its framework to closed c-packed curves by handling the unknown matching of a chosen vertex through a small candidate set. This yields a decision procedure and a (1+ε)-approximation algorithm for closed curves.

  • Closed-curve extension: For closed curves, dropping endpoint matching enlarges the set of reparameterizations and makes the Fréchet-distance problem more difficult.The closed-curve definition uses orientation-preserving homeomorphisms of the one-dimensional sphere.
  • Local complexity: A closed c-packed curve simplified at scale µ has O(cδ/µ) edges intersecting any ball of radius δ.The bound follows from 6c-packedness after simplification and the minimum length µ of each simplified edge.
  • Candidate matching: Given a vertex p, the algorithm constructs O(c/ε) candidate points on the other curve in O(n+c/ε) time.Candidates are created when the curve re-enters the δ-ball or travels εδ since the previous candidate, subject to not exiting the ball.
  • Candidate matching: If the simplified closed curves have Fréchet distance at most δ, some candidate matches the chosen vertex under width at most (1+ε)δ.The proof connects the true matched point to a nearby candidate and uses the triangle inequality while preserving monotonicity.
  • Approximation result: The resulting closed-curve decision procedure distinguishes distance at most δ from distance greater than (1+ε)δ, with an intermediate range allowed.Plugging this procedure into the approximation framework gives a (1+ε)-approximation algorithm for closed polygonal c-packed curves.

6 Conclusions

The paper presents a simple approximation algorithm for polygonal-curve Fréchet distance and introduces c-packed curves as a realistic, simplification-closed input family. Its analysis uses relative free space complexity, which is linear for c-packed curves, and the decision procedure improves on a known lower bound under the paper’s setting.

  • Contributions: The algorithm approximates Fréchet distance for polygonal curves in any fixed dimension and is designed to be simple and practical.It simplifies curves to the appropriate resolution during execution.
  • Contributions: The analysis uses relative free space complexity to capture the complexity of the free space diagram after simplification.
  • Contributions: The c-packed family is closed under simplification, and c-packedness is independent of the ambient dimension.The authors expect the concept to support analyses of other algorithms.
  • Results: The relative free space complexity of c-packed curves is linear, with additional bounds established for low-density and κ-bounded curves.The algorithm can also be modified to handle closed curves efficiently.
  • Results: The decision procedure beats the Ω(n log n) lower bound by a factor of log n in the paper’s approximated setting.Simplification and the input model ensure that only a constant number of segments match a single vertex.

A Fatness implies c-packedness

The paper shows that boundaries of (α, β)-covered shapes are c-packed, including without finite descriptive complexity, by bounding boundary length inside arbitrary disks. The proof uses good triangles, cone exposure, and a covering argument for larger disks, while also connecting the result to low density.

  • Main result: The boundary of an (α, β)-covered shape is c-packed even without finite descriptive complexity.This strengthens a related low-density result for boundaries of unions of γ-fat shapes, which is too weak by itself for this conclusion.
  • Definitions: An (α, β)-covered region assigns every boundary point an interior good triangle with minimum angle α and edge lengths at least βdiam(P).The triangle also has the boundary point as a vertex and lies inside the region.
  • Definitions: The definition differs from the standard one because finite descriptive complexity is not required.
  • Cone bound: Lemma A.2 bounds the total length of segments in a disk when every segment point admits an empty cone of angle at least α.The proof covers directions by finitely many cones and bounds the exposed segments for each cone using projection length.
  • Small disks: For a sufficiently small disk, each good triangle makes the boundary behave like a cone, allowing Lemma A.2 to bound the boundary length inside the disk.The bound is 10πr/(α sin(α/4)) when r ≤ ρ/2.
  • Large disks: For larger disks, a covering by disks of radius ρ/2 combines the small-disk bound to obtain a bound on the boundary length inside the original disk.When the disk radius is at least diam(P), the total boundary length is bounded by taking a disk centered at a point of P.

B A proof of Lemma 4.8

The proof of Lemma 4.8 constructs a reduced quadtree cover around edge-bounding-box corners, yielding a linear-size decomposition. Low density then limits how many sufficiently long curve edges can intersect each resulting cube.

  • Quadtree construction: A reduced quadtree covers a hypercube containing n points with at most 2^(d+1)dn cubes, bounded overlap, and at most one point per cube.The construction recursively splits cubes until each contains at most one point.
  • Quadtree construction: The reduced split handles cases where only one subcube contains points while allowing overlapping subcubes.Proper splits separate points into multiple nonempty subsets, whereas reduced splits place a point on the splitting plane.
  • Application to curves: For a curve with n edges, the proof adds corners of each edge’s axis-parallel bounding cube and applies the quadtree construction to these points.The resulting cover uses at most 2^(d+1)m boxes, with m ≤ 2^d n.
  • Application to curves: Each resulting cube can be intersected only by edges at least as long as the cube’s sidelength.Otherwise a bounding-box corner would lie inside the cube, preventing it from being a quadtree leaf.
  • Application to curves: Low density and Claim 4.7 imply that each resulting cube intersects at most c d^φ edges, which proves the lemma.
Loading 1003.0460v3…