English

Simplification of Trajectory Streams

Computational Geometry 2025-08-04 v2

Abstract

While there are software systems that simplify trajectory streams on the fly, few curve simplification algorithms with quality guarantees fit the streaming requirements. We present streaming algorithms for two such problems under the Fr\'{e}chet distance dFd_F in Rd\mathbb{R}^d for some constant d2d \geq 2. Consider a polygonal curve τ\tau in Rd\mathbb{R}^d in a stream. We present a streaming algorithm that, for any ε(0,1)\varepsilon\in (0,1) and δ>0\delta > 0, produces a curve σ\sigma such that dF(σ,τ[v1,vi])(1+ε)δd_F(\sigma,\tau[v_1,v_i])\le (1+\varepsilon)\delta and σ2opt2|\sigma|\le 2\,\mathrm{opt}-2, where τ[v1,vi]\tau[v_1,v_i] is the prefix in the stream so far, and opt=min{σ:dF(σ,τ[v1,vi])δ}\mathrm{opt} = \min\{|\sigma'|: d_F(\sigma',\tau[v_1,v_i])\le \delta\}. Let α=2(d1)d/22+d\alpha = 2(d-1){\lfloor d/2 \rfloor}^2 + d. The working storage is O(εα)O(\varepsilon^{-\alpha}). Each vertex is processed in O(εαlog1ε)O(\varepsilon^{-\alpha}\log\frac{1}{\varepsilon}) time for d{2,3}d \in \{2,3\} and O(εα)O(\varepsilon^{-\alpha}) time for d4d \geq 4 . Thus, the whole τ\tau can be simplified in O(εατlog1ε)O(\varepsilon^{-\alpha}|\tau|\log\frac{1}{\varepsilon}) time. Ignoring polynomial factors in 1/ε1/\varepsilon, this running time is a factor τ|\tau| faster than the best static algorithm that offers the same guarantees. We present another streaming algorithm that, for any integer k2k \geq 2 and any ε(0,117)\varepsilon \in (0,\frac{1}{17}), maintains a curve σ\sigma such that σ2k2|\sigma| \leq 2k-2 and dF(σ,τ[v1,vi])(1+ε)min{dF(σ,τ[v1,vi]):σk}d_F(\sigma,\tau[v_1,v_i])\le (1+\varepsilon) \cdot \min\{d_F(\sigma',\tau[v_1,v_i]): |\sigma'| \leq k\}, where τ[v1,vi]\tau[v_1,v_i] is the prefix in the stream so far. The working storage is O((kε1+ε(α+1))log1ε)O((k\varepsilon^{-1}+\varepsilon^{-(\alpha+1)})\log \frac{1}{\varepsilon}). Each vertex is processed in O(kε(α+1)log21ε)O(k\varepsilon^{-(\alpha+1)}\log^2\frac{1}{\varepsilon}) time for d{2,3}d \in \{2,3\} and O(kε(α+1)log1ε)O(k\varepsilon^{-(\alpha+1)}\log\frac{1}{\varepsilon}) time for d4d \geq 4.

Keywords

Cite

@article{arxiv.2503.23025,
  title  = {Simplification of Trajectory Streams},
  author = {Siu-Wing Cheng and Haoqiang Huang and Le Jiang},
  journal= {arXiv preprint arXiv:2503.23025},
  year   = {2025}
}

Comments

SoCG 2025

R2 v1 2026-06-28T22:38:54.117Z