When Lipschitz Walks Your Dog: Algorithm Engineering of the Discrete Fréchet Distance Under Translation

Authors Karl Bringmann, Marvin Künnemann, André Nusser



PDF
Thumbnail PDF

File

LIPIcs.ESA.2020.25.pdf
  • Filesize: 1.2 MB
  • 17 pages

Document Identifiers

Author Details

Karl Bringmann
  • Saarland University, Saarland Informatics Campus, Saarbrücken, Germany
  • Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany
Marvin Künnemann
  • Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany
André Nusser
  • Saarbrücken Graduate School of Computer Science, Saarland University, Germany
  • Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany

Acknowledgements

We thank Andreas Karrenbauer for helpful discussions.

Cite As Get BibTex

Karl Bringmann, Marvin Künnemann, and André Nusser. When Lipschitz Walks Your Dog: Algorithm Engineering of the Discrete Fréchet Distance Under Translation. In 28th Annual European Symposium on Algorithms (ESA 2020). Leibniz International Proceedings in Informatics (LIPIcs), Volume 173, pp. 25:1-25:17, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2020) https://doi.org/10.4230/LIPIcs.ESA.2020.25

Abstract

Consider the natural question of how to measure the similarity of curves in the plane by a quantity that is invariant under translations of the curves. Such a measure is justified whenever we aim to quantify the similarity of the curves' shapes rather than their positioning in the plane, e.g., to compare the similarity of handwritten characters. Perhaps the most natural such notion is the (discrete) Fréchet distance under translation. Unfortunately, the algorithmic literature on this problem yields a very pessimistic view: On polygonal curves with n vertices, the fastest algorithm runs in time 𝒪(n^4.667) and cannot be improved below n^{4-o(1)} unless the Strong Exponential Time Hypothesis fails. Can we still obtain an implementation that is efficient on realistic datasets? 
Spurred by the surprising performance of recent implementations for the Fréchet distance, we perform algorithm engineering for the Fréchet distance under translation. Our solution combines fast, but inexact tools from continuous optimization (specifically, branch-and-bound algorithms for global Lipschitz optimization) with exact, but expensive algorithms from computational geometry (specifically, problem-specific algorithms based on an arrangement construction). We combine these two ingredients to obtain an exact decision algorithm for the Fréchet distance under translation. For the related task of computing the distance value up to a desired precision, we engineer and compare different methods. On a benchmark set involving handwritten characters and route trajectories, our implementation answers a typical query for either task in the range of a few milliseconds up to a second on standard desktop hardware. 
We believe that our implementation will enable, for the first time, the use of the Fréchet distance under translation in applications, whereas previous algorithmic approaches would have been computationally infeasible. Furthermore, we hope that our combination of continuous optimization and computational geometry will inspire similar approaches for further algorithmic questions.

Subject Classification

ACM Subject Classification
  • Theory of computation → Computational geometry
Keywords
  • Fréchet Distance
  • Computational Geometry
  • Continuous Optimization
  • Algorithm Engineering

Metrics

  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    0
    PDF Downloads

References

  1. ACM SIGSPATIAL GIS Cup 2017 Data Set. https://www.martinwerner.de/datasets/san-francisco-shortest-path.html. Accessed: 2018-12-03.
  2. Character Trajectories Data Set. https://archive.ics.uci.edu/ml/datasets/Character+Trajectories. Accessed: 2018-12-03.
  3. Pankaj K. Agarwal, Rinat Ben Avraham, Haim Kaplan, and Micha Sharir. Computing the discrete Fréchet distance in subquadratic time. SIAM J. Comput., 43(2):429-449, 2014. URL: https://doi.org/10.1137/130920526.
  4. Helmut Alt and Michael Godau. Computing the Fréchet distance between two polygonal curves. Internat. J. Comput. Geom. Appl., 5(1-2):78-99, 1995. Google Scholar
  5. Helmut Alt, Christian Knauer, and Carola Wenk. Matching polygonal curves with respect to the Fréchet distance. In Proc. 18th Annual Symposium on Theoretical Aspects of Computer Science (STACS'01), pages 63-74, 2001. Google Scholar
  6. Julian Baldus and Karl Bringmann. A fast implementation of near neighbors queries for Fréchet distance (GIS Cup). In Proc. of the 25th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (SIGSPATIAL 2017), pages 99:1-99:4. ACM, 2017. URL: https://doi.org/10.1145/3139958.3140062.
  7. Rinat Ben Avraham, Haim Kaplan, and Micha Sharir. A faster algorithm for the discrete Fréchet distance under translation. ArXiv preprint, 2015. URL: http://arxiv.org/abs/1501.03724.
  8. Karl Bringmann. Why walking the dog takes time: Fréchet distance has no strongly subquadratic algorithms unless SETH fails. In Proc. 55th Ann. IEEE Symposium on Foundations of Computer Science (FOCS'14), pages 661-670, 2014. Google Scholar
  9. Karl Bringmann, Marvin Künnemann, and André Nusser. Fréchet distance under translation: Conditional hardness and an algorithm via offline dynamic grid reachability. In Proc. 30th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2019), pages 2902-2921, 2019. URL: https://doi.org/10.1137/1.9781611975482.180.
  10. Karl Bringmann, Marvin Künnemann, and André Nusser. Walking the dog fast in practice: Algorithm engineering of the Fréchet distance. In Proc. 35th International Symposium on Computational Geometry (SoCG 2019), pages 17:1-17:21, 2019. URL: https://doi.org/10.4230/LIPIcs.SoCG.2019.17.
  11. Kevin Buchin, Maike Buchin, Wouter Meulemans, and Wolfgang Mulzer. Four Soviets walk the dog: Improved bounds for computing the Fréchet distance. Discrete & Computational Geometry, 58(1):180-216, 2017. URL: https://doi.org/10.1007/s00454-017-9878-7.
  12. Kevin Buchin, Maike Buchin, and Yusu Wang. Exact algorithms for partial curve matching via the Fréchet distance. In Proc. 20th Annu. ACM-SIAM Symp. Discrete Algorithms (SODA'09), pages 645-654, 2009. Google Scholar
  13. Kevin Buchin, Yago Diez, Tom van Diggelen, and Wouter Meulemans. Efficient trajectory queries under the Fréchet distance (GIS Cup). In Proc. of the 25th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (SIGSPATIAL 2017), pages 101:1-101:4. ACM, 2017. URL: https://doi.org/10.1145/3139958.3140064.
  14. Kevin Buchin, Anne Driemel, Natasja van de L'Isle, and André Nusser. klcluster: Center-based clustering of trajectories. In Proc. of the 27th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (SIGSPATIAL 2019), pages 496-499. ACM, 2019. URL: https://doi.org/10.1145/3347146.3359111.
  15. 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 Timothy M. Chan, editor, Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2019, San Diego, California, USA, January 6-9, 2019, pages 2887-2901. SIAM, 2019. URL: https://doi.org/10.1137/1.9781611975482.179.
  16. Matteo Ceccarello, Anne Driemel, and Francesco Silvestri. FRESH: Fréchet similarity with hashing. In Proc. of the 16th International Symposium on Algorithms and Data Structures (WADS 2019), volume 11646 of LNCS, pages 254-268. Springer, 2019. URL: https://doi.org/10.1007/978-3-030-24766-9_19.
  17. 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, July 2012. URL: https://doi.org/10.1007/s00454-012-9402-z.
  18. Fabian Dütsch and Jan Vahrenhold. A filter-and-refinement-algorithm for range queries based on the Fréchet distance (GIS Cup). In Proc. of the 25th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (SIGSPATIAL 2017), pages 100:1-100:4. ACM, 2017. URL: https://doi.org/10.1145/3139958.3140063.
  19. Thomas Eiter and Heikki Mannila. Computing discrete Fréchet distance. Technical Report CD-TR 94/64, Christian Doppler Laboratory for Expert Systems, TU Vienna, Austria, 1994. Google Scholar
  20. Efim A. Galperin. The cubic algorithm. Journal of Mathematical Analysis and Applications, 112(2):635-640, 1985. URL: https://doi.org/10.1016/0022-247X(85)90268-9.
  21. Efim A. Galperin. Two alternatives for the cubic algorithm. Journal of Mathematical Analysis and Applications, 126(1):229-237, 1987. URL: https://doi.org/10.1016/0022-247X(87)90088-6.
  22. Efim A. Galperin. Precision, complexity, and computational schemes of the cubic algorithm. Journal of Optimization Theory and Applications, 57(2):223-238, 1988. URL: https://doi.org/10.1007/BF00938537.
  23. Efim A. Galperin. The fast cubic algorithm. Computers & Mathematics with Applications, 25(10):147-160, 1993. URL: https://doi.org/10.1016/0898-1221(93)90289-8.
  24. E. Gourdin, P. Hansen, and B. Jaumard. Global optimization of multivariate lipschitz functions: Survey and computational comparison, 1994. Google Scholar
  25. Pierre Hansen and Brigitte Jaumard. Lipschitz optimization. In Reiner Horst and Panos M. Pardalos, editors, Handbook of Global Optimization, pages 407-493. Springer US, Boston, MA, 1995. URL: https://doi.org/10.1007/978-1-4615-2025-2_9.
  26. Reiner Horst. A general class of branch-and-bound methods in global optimization with some new approaches for concave minimization. Journal of Optimization Theory and Applications, 51:271-291, 1986. URL: https://doi.org/10.1007/BF00939825.
  27. Reiner Horst and Hoang Tuy. On the convergence of global methods in multiextremal optimization. Journal of Optimization Theory and Applications, 54:253-271, 1987. URL: https://doi.org/10.1007/BF00939434.
  28. Reiner Horst and Hoang Tuy. Global Optimization - Deterministic Approaches. Springer Berlin Heidelberg, 3rd edition, 1996. Google Scholar
  29. Minghui Jiang, Ying Xu, and Binhai Zhu. Protein structure-structure alignment with discrete Fréchet distance. J. Bioinformatics and Computational Biology, 6(01):51-64, 2008. Google Scholar
  30. Nimrod Megiddo. Applying parallel computation algorithms in the design of serial algorithms. Journal of the ACM, 30(4):852-865, 1983. URL: https://doi.org/10.1145/2157.322410.
  31. Axel Mosig and Michael Clausen. Approximately matching polygonal curves with respect to the fréchet distance. Computational Geometry, 30(2):113-127, 2005. Special Issue on the 19th European Workshop on Computational Geometry. URL: https://doi.org/10.1016/j.comgeo.2004.05.004.
  32. S.A. Piyavskii. An algorithm for finding the absolute extremum of a function. USSR Computational Mathematics and Mathematical Physics, 12(4):57-67, 1972. URL: https://doi.org/10.1016/0041-5553(72)90115-2.
  33. Ron Wein, Eric Berberich, Efi Fogel, Dan Halperin, Michael Hemmer, Oren Salzman, and Baruch Zukerman. 2D arrangements. In CGAL User and Reference Manual. CGAL Editorial Board, 5.0.2 edition, 2020. URL: https://doc.cgal.org/5.0.2/Manual/packages.html#PkgArrangementOnSurface2.
  34. Carola Wenk. Shape matching in higher dimensions. PhD thesis, Freie Universität Berlin, 2002. PhD Thesis. Google Scholar
  35. Martin Werner and Dev Oliver. ACM SIGSPATIAL GIS cup 2017: Range queries under Fréchet distance. SIGSPATIAL Special, 10(1):24-27, 2018. Google Scholar
  36. L.A. Wolsey. Integer Programming. Wiley Series in Discrete Mathematics and Optimization. Wiley, 1998. Google Scholar
Questions / Remarks / Feedback
X

Feedback for Dagstuhl Publishing


Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail