Walking the Dog Fast in Practice: Algorithm Engineering of the Fréchet Distance

K. Bringmann, Marvin Künnemann, A. Nusser
{"title":"Walking the Dog Fast in Practice: Algorithm Engineering of the Fréchet Distance","authors":"K. Bringmann, Marvin Künnemann, A. Nusser","doi":"10.4230/LIPICS.SOCG.2019.17","DOIUrl":null,"url":null,"abstract":"The Fr\\'echet distance provides a natural and intuitive measure for the popular task of computing the similarity of two (polygonal) curves. While a simple algorithm computes it in near-quadratic time, a strongly subquadratic algorithm cannot exist unless the Strong Exponential Time Hypothesis fails. Still, fast practical implementations of the Fr\\'echet distance, in particular for realistic input curves, are highly desirable. This has even lead to a designated competition, the ACM SIGSPATIAL GIS Cup 2017: Here, the challenge was to implement a near-neighbor data structure under the Fr\\'echet distance. The bottleneck of the top three implementations turned out to be precisely the decision procedure for the Fr\\'echet distance. \nIn this work, we present a fast, certifying implementation for deciding the Fr\\'echet distance, in order to (1) complement its pessimistic worst-case hardness by an empirical analysis on realistic input data and to (2) improve the state of the art for the GIS Cup challenge. We experimentally evaluate our implementation on a large benchmark consisting of several data sets (including handwritten characters and GPS trajectories). Compared to the winning implementation of the GIS Cup, we obtain running time improvements of up to more than two orders of magnitude for the decision procedure and of up to a factor of 30 for queries to the near-neighbor data structure.","PeriodicalId":54969,"journal":{"name":"International Journal of Computational Geometry & Applications","volume":"31 1","pages":"70-108"},"PeriodicalIF":0.0000,"publicationDate":"2019-01-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"18","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Computational Geometry & Applications","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4230/LIPICS.SOCG.2019.17","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"Mathematics","Score":null,"Total":0}
引用次数: 18

Abstract

The Fr\'echet distance provides a natural and intuitive measure for the popular task of computing the similarity of two (polygonal) curves. While a simple algorithm computes it in near-quadratic time, a strongly subquadratic algorithm cannot exist unless the Strong Exponential Time Hypothesis fails. Still, fast practical implementations of the Fr\'echet distance, in particular for realistic input curves, are highly desirable. This has even lead to a designated competition, the ACM SIGSPATIAL GIS Cup 2017: Here, the challenge was to implement a near-neighbor data structure under the Fr\'echet distance. The bottleneck of the top three implementations turned out to be precisely the decision procedure for the Fr\'echet distance. In this work, we present a fast, certifying implementation for deciding the Fr\'echet distance, in order to (1) complement its pessimistic worst-case hardness by an empirical analysis on realistic input data and to (2) improve the state of the art for the GIS Cup challenge. We experimentally evaluate our implementation on a large benchmark consisting of several data sets (including handwritten characters and GPS trajectories). Compared to the winning implementation of the GIS Cup, we obtain running time improvements of up to more than two orders of magnitude for the decision procedure and of up to a factor of 30 for queries to the near-neighbor data structure.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
遛狗在实践中的快速:距离的算法工程
对于计算两条(多边形)曲线的相似度这一常见任务,趋近距离提供了一种自然而直观的度量。当一个简单的算法在近二次时间内计算它时,除非强指数时间假设失败,否则不可能存在强次二次算法。尽管如此,快速的实际实现,特别是对于真实的输入曲线,是非常可取的。这甚至导致了一场指定的比赛,ACM SIGSPATIAL GIS杯2017:在这里,挑战是在Fr\' et距离下实现近邻数据结构。结果表明,前三种实现的瓶颈恰恰是对Fr\' cheet距离的决策过程。在这项工作中,我们提出了一个快速的、可验证的实现来确定Fr\'链距离,以便(1)通过对现实输入数据的实证分析来补充其悲观最坏情况硬度,以及(2)提高GIS杯挑战的技术水平。我们在由多个数据集(包括手写字符和GPS轨迹)组成的大型基准测试上实验性地评估了我们的实现。与GIS杯的获胜实现相比,我们的决策过程的运行时间改进了两个数量级以上,对近邻数据结构的查询的运行时间改进了30倍。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
CiteScore
0.80
自引率
0.00%
发文量
4
审稿时长
>12 weeks
期刊介绍: The International Journal of Computational Geometry & Applications (IJCGA) is a quarterly journal devoted to the field of computational geometry within the framework of design and analysis of algorithms. Emphasis is placed on the computational aspects of geometric problems that arise in various fields of science and engineering including computer-aided geometry design (CAGD), computer graphics, constructive solid geometry (CSG), operations research, pattern recognition, robotics, solid modelling, VLSI routing/layout, and others. Research contributions ranging from theoretical results in algorithm design — sequential or parallel, probabilistic or randomized algorithms — to applications in the above-mentioned areas are welcome. Research findings or experiences in the implementations of geometric algorithms, such as numerical stability, and papers with a geometric flavour related to algorithms or the application areas of computational geometry are also welcome.
期刊最新文献
On morphs of 1-plane graphs A Geometric Approach to Inelastic Collapse Near-optimal algorithms for point-line fitting problems Algorithms for approximate sparse regression and nearest induced hulls Recognizing weighted and seeded disk graphs
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1