{"title":"k近邻查询的动态数据结构","authors":"Sarita de Berg, 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":"111 ","pages":"Article 101976"},"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, 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\":\"111 \",\"pages\":\"Article 101976\"},\"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}
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 time, where 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 term in the query time to . 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, 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.
期刊介绍:
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.