在 4 LoC 中快速遛青蛙

Nis Meinert
{"title":"在 4 LoC 中快速遛青蛙","authors":"Nis Meinert","doi":"arxiv-2404.05708","DOIUrl":null,"url":null,"abstract":"Given two polygonal curves, there are many ways to define a notion of\nsimilarity between them. One popular measure is the Fr\\'echet distance which\nhas many desirable properties but is notoriously expensive to calculate,\nespecially for non-trivial metrics. In 1994, Eiter and Mannila introduced the\ndiscrete Fr\\'echet distance which is much easier to implement and approximates\nthe continuous Fr\\'echet distance with a quadratic runtime overhead. However,\nthis algorithm relies on recursions and is not well suited for modern hardware.\nTo that end, we introduce the Fast Fr\\'echet Distance algorithm, a\nrecursion-free algorithm that calculates the discrete Fr\\'echet distance with a\nlinear memory overhead and that can utilize modern hardware more effectively.\nWe showcase an implementation with only four lines of code and present\nbenchmarks of our algorithm running fast on modern CPUs and GPGPUs.","PeriodicalId":501570,"journal":{"name":"arXiv - CS - Computational Geometry","volume":"76 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-04-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Walking Your Frog Fast in 4 LoC\",\"authors\":\"Nis Meinert\",\"doi\":\"arxiv-2404.05708\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Given two polygonal curves, there are many ways to define a notion of\\nsimilarity between them. One popular measure is the Fr\\\\'echet distance which\\nhas many desirable properties but is notoriously expensive to calculate,\\nespecially for non-trivial metrics. In 1994, Eiter and Mannila introduced the\\ndiscrete Fr\\\\'echet distance which is much easier to implement and approximates\\nthe continuous Fr\\\\'echet distance with a quadratic runtime overhead. However,\\nthis algorithm relies on recursions and is not well suited for modern hardware.\\nTo that end, we introduce the Fast Fr\\\\'echet Distance algorithm, a\\nrecursion-free algorithm that calculates the discrete Fr\\\\'echet distance with a\\nlinear memory overhead and that can utilize modern hardware more effectively.\\nWe showcase an implementation with only four lines of code and present\\nbenchmarks of our algorithm running fast on modern CPUs and GPGPUs.\",\"PeriodicalId\":501570,\"journal\":{\"name\":\"arXiv - CS - Computational Geometry\",\"volume\":\"76 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-04-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Computational Geometry\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2404.05708\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Computational Geometry","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2404.05708","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

给定两条多边形曲线,有许多方法可以定义它们之间的相似性概念。其中一种流行的度量方法是弗雷谢特距离,它有许多理想的特性,但计算起来却出了名的昂贵,特别是对于非三维度量。1994 年,Eiter 和 Mannila 引入了离散的 Fr\'echet 距离,它更容易实现,并以二次运行时间开销近似连续的 Fr\'echet 距离。我们展示了仅有四行代码的算法实现,并展示了我们的算法在现代 CPU 和 GPGPU 上快速运行的基准测试。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Walking Your Frog Fast in 4 LoC
Given two polygonal curves, there are many ways to define a notion of similarity between them. One popular measure is the Fr\'echet distance which has many desirable properties but is notoriously expensive to calculate, especially for non-trivial metrics. In 1994, Eiter and Mannila introduced the discrete Fr\'echet distance which is much easier to implement and approximates the continuous Fr\'echet distance with a quadratic runtime overhead. However, this algorithm relies on recursions and is not well suited for modern hardware. To that end, we introduce the Fast Fr\'echet Distance algorithm, a recursion-free algorithm that calculates the discrete Fr\'echet distance with a linear memory overhead and that can utilize modern hardware more effectively. We showcase an implementation with only four lines of code and present benchmarks of our algorithm running fast on modern CPUs and GPGPUs.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Minimum Plane Bichromatic Spanning Trees Evolving Distributions Under Local Motion New Lower Bound and Algorithms for Online Geometric Hitting Set Problem Computing shortest paths amid non-overlapping weighted disks Fast Comparative Analysis of Merge Trees Using Locality Sensitive Hashing
×
引用
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