313 research outputs found

    Computing the Similarity Between Moving Curves

    Get PDF
    In this paper we study similarity measures for moving curves which can, for example, model changing coastlines or retreating glacier termini. Points on a moving curve have two parameters, namely the position along the curve as well as time. We therefore focus on similarity measures for surfaces, specifically the Fr\'echet distance between surfaces. While the Fr\'echet distance between surfaces is not even known to be computable, we show for variants arising in the context of moving curves that they are polynomial-time solvable or NP-complete depending on the restrictions imposed on how the moving curves are matched. We achieve the polynomial-time solutions by a novel approach for computing a surface in the so-called free-space diagram based on max-flow min-cut duality

    Fast Frechet Distance Between Curves With Long Edges

    Full text link
    Computing the Fr\'echet distance between two polygonal curves takes roughly quadratic time. In this paper, we show that for a special class of curves the Fr\'echet distance computations become easier. Let PP and QQ be two polygonal curves in Rd\mathbb{R}^d with nn and mm vertices, respectively. We prove four results for the case when all edges of both curves are long compared to the Fr\'echet distance between them: (1) a linear-time algorithm for deciding the Fr\'echet distance between two curves, (2) an algorithm that computes the Fr\'echet distance in O((n+m)log(n+m))O((n+m)\log (n+m)) time, (3) a linear-time d\sqrt{d}-approximation algorithm, and (4) a data structure that supports O(mlog2n)O(m\log^2 n)-time decision queries, where mm is the number of vertices of the query curve and nn the number of vertices of the preprocessed curve

    Approximating the Packedness of Polygonal Curves

    Get PDF
    In 2012 Driemel et al. \cite{DBLP:journals/dcg/DriemelHW12} introduced the concept of cc-packed curves as a realistic input model. In the case when cc is a constant they gave a near linear time (1+ε)(1+\varepsilon)-approximation algorithm for computing the Fr\'echet distance between two cc-packed polygonal curves. Since then a number of papers have used the model. In this paper we consider the problem of computing the smallest cc for which a given polygonal curve in Rd\mathbb{R}^d is cc-packed. We present two approximation algorithms. The first algorithm is a 22-approximation algorithm and runs in O(dn2logn)O(dn^2 \log n) time. In the case d=2d=2 we develop a faster algorithm that returns a (6+ε)(6+\varepsilon)-approximation and runs in O((n/ε3)4/3polylog(n/ε)))O((n/\varepsilon^3)^{4/3} polylog (n/\varepsilon))) time. We also implemented the first algorithm and computed the approximate packedness-value for 16 sets of real-world trajectories. The experiments indicate that the notion of cc-packedness is a useful realistic input model for many curves and trajectories.Comment: A preliminary version to appear in ISAAC 202

    Computing a Subtrajectory Cluster from c-packed Trajectories

    Full text link
    We present a near-linear time approximation algorithm for the subtrajectory cluster problem of cc-packed trajectories. The problem involves finding mm subtrajectories within a given trajectory TT such that their Fr\'echet distances are at most (1+ε)d(1 + \varepsilon)d, and at least one subtrajectory must be of length~ll or longer. A trajectory TT is cc-packed if the intersection of TT and any ball BB with radius rr is at most crc \cdot r in length. Previous results by Gudmundsson and Wong \cite{GudmundssonWong2022Cubicupperlower} established an Ω(n3)\Omega(n^3) lower bound unless the Strong Exponential Time Hypothesis fails, and they presented an O(n3log2n)O(n^3 \log^2 n) time algorithm. We circumvent this conditional lower bound by studying subtrajectory cluster on cc-packed trajectories, resulting in an algorithm with an O((c2n/ε2)log(c/ε)log(n/ε))O((c^2 n/\varepsilon^2)\log(c/\varepsilon)\log(n/\varepsilon)) time complexity

    Random projections for high-dimensional curves

    Get PDF
    Modern time series analysis requires the ability to handle datasets that are inherently high-dimensional; examples include applications in climatology, where measurements from numerous sensors must be taken into account, or inventory tracking of large shops, where the dimension is defined by the number of tracked items. The standard way to mitigate computational issues arising from the high-dimensionality of the data is by applying some dimension reduction technique that preserves the structural properties of the ambient space. The dissimilarity between two time series is often measured by ``discrete'' notions of distance, e.g. the dynamic time warping, or the discrete Fr\'echet distance, or simply the Euclidean distance. Since all these distance functions are computed directly on the points of a time series, they are sensitive to different sampling rates or gaps. The continuous Fr\'echet distance offers a popular alternative which aims to alleviate this by taking into account all points on the polygonal curve obtained by linearly interpolating between any two consecutive points in a sequence. We study the ability of random projections \`a la Johnson and Lindenstrauss to preserve the continuous Fr\'echet distance of polygonal curves by effectively reducing the dimension. In particular, we show that one can reduce the dimension to O(ϵ2logN)O(\epsilon^{-2} \log N), where NN is the total number of input points while preserving the continuous Fr\'echet distance between any two determined polygonal curves within a factor of 1±ϵ1\pm \epsilon. We conclude with applications on clustering.Comment: 22 page

    A fast implementation of near neighbors queries for Fr\'echet distance (GIS Cup)

    Get PDF
    This paper describes an implementation of fast near-neighbours queries (also known as range searching) with respect to the Fr\'echet distance. The algorithm is designed to be efficient on practical data such as GPS trajectories. Our approach is to use a quadtree data structure to enumerate all curves in the database that have similar start and endpoints as the query curve. On these curves we run positive and negative filters to narrow the set of potential results. Only for those trajectories where these heuristics fail, we compute the Fr\'echet distance exactly, by running a novel recursive variant of the classic free-space diagram algorithm. Our implementation won the ACM SIGSPATIAL GIS Cup 2017.Comment: ACM SIGSPATIAL'17 invited paper. 9 page
    corecore