Aggregate nearest neighbor queries in spatial databases

Dimitris Papadias, Yufei Tao, Kyriakos Mouratidis, Chun Kit Hui

ACM Transactions on Database Systems · 2005 · 269 citations · 39 references

DOIFull text

Open access

Concepts

TL;DR

Aggregate nearest neighbor (ANN) queries identify points in a spatial dataset P that minimize aggregate distances to a set of query points Q, such as minimizing total travel distance for multiple users. The authors aim to develop efficient ANN algorithms for memory‑resident queries, supporting weighted and incremental result reporting. They analyze algorithmic performance, propose cost models for optimization, and extend the methods to disk‑resident and approximate ANN retrieval. Experiments on real and synthetic data demonstrate the algorithms’ efficiency and validate the accuracy of the cost models.

Abstract

Given two spatial datasets P (e.g., facilities) and Q (queries), an aggregate nearest neighbor (ANN) query retrieves the point(s) of P with the smallest aggregate distance(s) to points in Q . Assuming, for example, n users at locations q 1 ,… q n , an ANN query outputs the facility p ∈ P that minimizes the sum of distances | pq i | for 1 ≤ i ≤ n that the users have to travel in order to meet there. Similarly, another ANN query may report the point p ∈ P that minimizes the maximum distance that any user has to travel, or the minimum distance from some user to his/her closest facility. If Q fits in memory and P is indexed by an R-tree, we develop algorithms for aggregate nearest neighbors that capture several versions of the problem, including weighted queries and incremental reporting of results. Then, we analyze their performance and propose cost models for query optimization. Finally, we extend our techniques for disk-resident queries and approximate ANN retrieval. The efficiency of the algorithms and the accuracy of the cost models are evaluated through extensive experiments with real and synthetic datasets.

References

39