k近邻查询的动态数据结构

IF 0.4 4区 计算机科学 Q4 MATHEMATICS
Sarita de Berg, Frank Staals
{"title":"k近邻查询的动态数据结构","authors":"Sarita de Berg,&nbsp;Frank Staals","doi":"10.1016/j.comgeo.2022.101976","DOIUrl":null,"url":null,"abstract":"<div><p>Our aim is to develop dynamic data structures that support <em>k</em>-nearest neighbors (<em>k</em>-NN) queries for a set of <em>n</em> point sites in the plane in <span><math><mi>O</mi><mo>(</mo><mi>f</mi><mo>(</mo><mi>n</mi><mo>)</mo><mo>+</mo><mi>k</mi><mo>)</mo></math></span> time, where <span><math><mi>f</mi><mo>(</mo><mi>n</mi><mo>)</mo></math></span> is some polylogarithmic function of <em>n</em>. The key component is a general query algorithm that allows us to find the <em>k</em>-NN spread over <em>t</em> substructures simultaneously, thus reducing an <span><math><mi>O</mi><mo>(</mo><mi>t</mi><mi>k</mi><mo>)</mo></math></span> term in the query time to <span><math><mi>O</mi><mo>(</mo><mi>k</mi><mo>)</mo></math></span>. Combining this technique with the logarithmic method allows us to turn any static <em>k</em>-NN data structure into a data structure supporting both efficient insertions and queries. For the fully dynamic case, this technique allows us to recover the deterministic, worst-case, <span><math><mi>O</mi><mo>(</mo><msup><mrow><mi>log</mi></mrow><mrow><mn>2</mn></mrow></msup><mo>⁡</mo><mi>n</mi><mo>/</mo><mi>log</mi><mo>⁡</mo><mi>log</mi><mo>⁡</mo><mi>n</mi><mo>+</mo><mi>k</mi><mo>)</mo></math></span> query time for the Euclidean distance claimed before, while preserving the polylogarithmic update times. We adapt this data structure to also support fully dynamic <em>geodesic k</em>-NN queries among a set of sites in a simple polygon. For this purpose, we design a shallow cutting based, deletion-only <em>k</em>-NN data structure. More generally, we obtain a dynamic planar <em>k</em>-NN data structure for any type of distance functions for which we can build vertical shallow cuttings. We apply all of our methods in the plane for the Euclidean distance, the geodesic distance, and general, constant-complexity, algebraic distance functions.</p></div>","PeriodicalId":51001,"journal":{"name":"Computational Geometry-Theory and Applications","volume":null,"pages":null},"PeriodicalIF":0.4000,"publicationDate":"2023-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Dynamic data structures for k-nearest neighbor queries\",\"authors\":\"Sarita de Berg,&nbsp;Frank Staals\",\"doi\":\"10.1016/j.comgeo.2022.101976\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>Our aim is to develop dynamic data structures that support <em>k</em>-nearest neighbors (<em>k</em>-NN) queries for a set of <em>n</em> point sites in the plane in <span><math><mi>O</mi><mo>(</mo><mi>f</mi><mo>(</mo><mi>n</mi><mo>)</mo><mo>+</mo><mi>k</mi><mo>)</mo></math></span> time, where <span><math><mi>f</mi><mo>(</mo><mi>n</mi><mo>)</mo></math></span> is some polylogarithmic function of <em>n</em>. The key component is a general query algorithm that allows us to find the <em>k</em>-NN spread over <em>t</em> substructures simultaneously, thus reducing an <span><math><mi>O</mi><mo>(</mo><mi>t</mi><mi>k</mi><mo>)</mo></math></span> term in the query time to <span><math><mi>O</mi><mo>(</mo><mi>k</mi><mo>)</mo></math></span>. Combining this technique with the logarithmic method allows us to turn any static <em>k</em>-NN data structure into a data structure supporting both efficient insertions and queries. For the fully dynamic case, this technique allows us to recover the deterministic, worst-case, <span><math><mi>O</mi><mo>(</mo><msup><mrow><mi>log</mi></mrow><mrow><mn>2</mn></mrow></msup><mo>⁡</mo><mi>n</mi><mo>/</mo><mi>log</mi><mo>⁡</mo><mi>log</mi><mo>⁡</mo><mi>n</mi><mo>+</mo><mi>k</mi><mo>)</mo></math></span> query time for the Euclidean distance claimed before, while preserving the polylogarithmic update times. We adapt this data structure to also support fully dynamic <em>geodesic k</em>-NN queries among a set of sites in a simple polygon. For this purpose, we design a shallow cutting based, deletion-only <em>k</em>-NN data structure. More generally, we obtain a dynamic planar <em>k</em>-NN data structure for any type of distance functions for which we can build vertical shallow cuttings. We apply all of our methods in the plane for the Euclidean distance, the geodesic distance, and general, constant-complexity, algebraic distance functions.</p></div>\",\"PeriodicalId\":51001,\"journal\":{\"name\":\"Computational Geometry-Theory and Applications\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.4000,\"publicationDate\":\"2023-04-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computational Geometry-Theory and Applications\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0925772122001195\",\"RegionNum\":4,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q4\",\"JCRName\":\"MATHEMATICS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computational Geometry-Theory and Applications","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0925772122001195","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"MATHEMATICS","Score":null,"Total":0}
引用次数: 0

摘要

我们的目标是开发动态数据结构,支持在O(f(n)+k)时间内对平面中的一组n个点位进行k近邻(k-NN)查询,其中f(n是n的一些多对数函数。关键组件是一种通用查询算法,它允许我们同时找到分布在t个子结构上的k-NN,从而将查询时间中的O(tk)项减少到O(k)。将该技术与对数方法相结合,可以将任何静态k-NN数据结构转换为支持有效插入和查询的数据结构。对于完全动态的情况,该技术允许我们恢复确定性的、最坏情况下的O(log2⁡n/log⁡日志⁡n+k)查询时间,同时保留多对数更新时间。我们对这种数据结构进行了调整,以支持在简单多边形中的一组站点之间进行完全动态的测地k-NN查询。为此,我们设计了一种基于浅切割、仅删除的k-NN数据结构。更一般地说,我们获得了任何类型的距离函数的动态平面k-NN数据结构,我们可以为其构建垂直浅路堑。我们在平面上应用我们所有的方法来计算欧几里得距离、测地距离和一般的常复杂度代数距离函数。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Dynamic data structures for k-nearest neighbor queries

Our aim is to develop dynamic data structures that support k-nearest neighbors (k-NN) queries for a set of n point sites in the plane in O(f(n)+k) time, where f(n) is some polylogarithmic function of n. The key component is a general query algorithm that allows us to find the k-NN spread over t substructures simultaneously, thus reducing an O(tk) term in the query time to O(k). Combining this technique with the logarithmic method allows us to turn any static k-NN data structure into a data structure supporting both efficient insertions and queries. For the fully dynamic case, this technique allows us to recover the deterministic, worst-case, O(log2n/loglogn+k) query time for the Euclidean distance claimed before, while preserving the polylogarithmic update times. We adapt this data structure to also support fully dynamic geodesic k-NN queries among a set of sites in a simple polygon. For this purpose, we design a shallow cutting based, deletion-only k-NN data structure. More generally, we obtain a dynamic planar k-NN data structure for any type of distance functions for which we can build vertical shallow cuttings. We apply all of our methods in the plane for the Euclidean distance, the geodesic distance, and general, constant-complexity, algebraic distance functions.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
CiteScore
1.60
自引率
16.70%
发文量
43
审稿时长
>12 weeks
期刊介绍: Computational Geometry is a forum for research in theoretical and applied aspects of computational geometry. The journal publishes fundamental research in all areas of the subject, as well as disseminating information on the applications, techniques, and use of computational geometry. Computational Geometry publishes articles on the design and analysis of geometric algorithms. All aspects of computational geometry are covered, including the numerical, graph theoretical and combinatorial aspects. Also welcomed are computational geometry solutions to fundamental problems arising in computer graphics, pattern recognition, robotics, image processing, CAD-CAM, VLSI design and geographical information systems. Computational Geometry features a special section containing open problems and concise reports on implementations of computational geometry tools.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信