iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ESA.2020.25/metadata/acm-xml
10.1145/acmotherconferences ACM Other Conferences 0000000 10.5555/0000000 Proceedings of the 28th Annual European Symposium on Algorithms (ESA 2020) ESA 2020 10.4230/LIPIcs.ESA.2020.25 25 10003752.10010061.10010063 Theory of computation~Computational geometry 500 When Lipschitz Walks Your Dog: Algorithm Engineering of the Discrete Fréchet Distance Under Translation Bringmann Karl Saarland University, Saarland Informatics Campus, Saarbrücken, Germany kbringma@mpi-inf.mpg.de Author Künnemann Marvin Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany marvin@mpi-inf.mpg.de Author Nusser André Saarbrücken Graduate School of Computer Science, Saarland University, Germany anusser@mpi-inf.mpg.de Author 26 08 2020 25:1 25:17

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.

Fréchet Distance Computational Geometry Continuous Optimization Algorithm Engineering
ACM SIGSPATIAL GIS Cup 2017 Data Set. https://www.martinwerner.de/datasets/san-francisco-shortest-path.html. Accessed: 2018-12-03. Character Trajectories Data Set. https://archive.ics.uci.edu/ml/datasets/Character+Trajectories. Accessed: 2018-12-03. 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.10.1137/130920526 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. 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. 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.10.1145/3139958.3140062 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. 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. 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.10.1137/1.9781611975482.180 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.10.4230/LIPIcs.SoCG.2019.17 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.10.1007/s00454-017-9878-7 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. 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.10.1145/3139958.3140064 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.10.1145/3347146.3359111 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.10.1137/1.9781611975482.179 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.10.1007/978-3-030-24766-9_19 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.10.1007/s00454-012-9402-z 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.10.1145/3139958.3140063 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. Efim A. Galperin. The cubic algorithm. Journal of Mathematical Analysis and Applications, 112(2):635-640, 1985.10.1016/0022-247X(85)90268-9 Efim A. Galperin. Two alternatives for the cubic algorithm. Journal of Mathematical Analysis and Applications, 126(1):229-237, 1987.10.1016/0022-247X(87)90088-6 Efim A. Galperin. Precision, complexity, and computational schemes of the cubic algorithm. Journal of Optimization Theory and Applications, 57(2):223-238, 1988.10.1007/BF00938537 Efim A. Galperin. The fast cubic algorithm. Computers & Mathematics with Applications, 25(10):147-160, 1993.10.1016/0898-1221(93)90289-8 E. Gourdin, P. Hansen, and B. Jaumard. Global optimization of multivariate lipschitz functions: Survey and computational comparison, 1994. 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.10.1007/978-1-4615-2025-2_9 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.10.1007/BF00939825 Reiner Horst and Hoang Tuy. On the convergence of global methods in multiextremal optimization. Journal of Optimization Theory and Applications, 54:253-271, 1987.10.1007/BF00939434 Reiner Horst and Hoang Tuy. Global Optimization - Deterministic Approaches. Springer Berlin Heidelberg, 3rd edition, 1996. 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. Nimrod Megiddo. Applying parallel computation algorithms in the design of serial algorithms. Journal of the ACM, 30(4):852-865, 1983.10.1145/2157.322410 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.10.1016/j.comgeo.2004.05.004 S.A. Piyavskii. An algorithm for finding the absolute extremum of a function. USSR Computational Mathematics and Mathematical Physics, 12(4):57-67, 1972.10.1016/0041-5553(72)90115-2 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. Carola Wenk. Shape matching in higher dimensions. PhD thesis, Freie Universität Berlin, 2002. PhD Thesis. Martin Werner and Dev Oliver. ACM SIGSPATIAL GIS cup 2017: Range queries under Fréchet distance. SIGSPATIAL Special, 10(1):24-27, 2018. L.A. Wolsey. Integer Programming. Wiley Series in Discrete Mathematics and Optimization. Wiley, 1998.