English

Subtrajectory Clustering and Coverage Maximization in Cubic Time, or Better

Computational Geometry 2025-04-25 v1

Abstract

Many application areas collect unstructured trajectory data. In subtrajectory clustering, one is interested to find patterns in this data using a hybrid combination of segmentation and clustering. We analyze two variants of this problem based on the well-known \textsc{SetCover} and \textsc{CoverageMaximization} problems. In both variants the set system is induced by metric balls under the Fr\'echet distance centered at polygonal curves. Our algorithms focus on improving the running time of the update step of the generic greedy algorithm by means of a careful combination of sweeps through a candidate space. In the first variant, we are given a polygonal curve PP of complexity nn, distance threshold Δ\Delta and complexity bound \ell and the goal is to identify a minimum-size set of center curves C\mathcal{C}, where each center curve is of complexity at most \ell and every point pp on PP is covered. A point pp on PP is covered if it is part of a subtrajectory πp\pi_p of PP such that there is a center cCc\in\mathcal{C} whose Fr\'echet distance to πp\pi_p is at most Δ\Delta. We present an approximation algorithm for this problem with a running time of O((n2+kΔn5/2)log2n)O((n^2\ell + \sqrt{k_\Delta}n^{5/2})\log^2n), where kΔk_\Delta is the size of an optimal solution. The algorithm gives a bicriterial approximation guarantee that relaxes the Fr\'echet distance threshold by a constant factor and the size of the solution by a factor of O(logn)O(\log n). The second problem variant asks for the maximum fraction of the input curve PP that can be covered using kk center curves, where knk\leq n is a parameter to the algorithm. Here, we show that our techniques lead to an algorithm with a running time of O((k+)n2log2n)O((k+\ell)n^2\log^2 n) and similar approximation guarantees. Note that in both algorithms k,kΔO(n)k,k_\Delta\in O(n) and hence the running time is cubic, or better if knk\ll n.

Keywords

Cite

@article{arxiv.2504.17381,
  title  = {Subtrajectory Clustering and Coverage Maximization in Cubic Time, or Better},
  author = {Jacobus Conradi and Anne Driemel},
  journal= {arXiv preprint arXiv:2504.17381},
  year   = {2025}
}
R2 v1 2026-06-28T23:09:37.575Z