Skip to main content

Nearest Neighbor Query, Definition

  • Reference work entry
  • First Online:
  • 69 Accesses

Definition

Given a set P of n points in a d-dimensional space d and a query point qd, a nearest neighbor (NN) query is to find the set of nearest points to the query point q. Formally, \(NN\left (q\right ) = \left \{p\vert p \in P,\forall o \in P,(o\neq p),\vert qp\vert <\left \vert qo\right \vert \right \}\). In most cases, d refers to a d-dimensional Euclidean space.

Main Text

Nearest neighbor search is one of the oldest problems in computer science. The NN algorithm was one of the earliest algorithms used to determine a solution to the traveling salesman problem (TSP). The NN query first appeared in Geographic Information Systems around 1990 and has now already become a frequently encountered query type in this field. Recently, several NN algorithms have been proposed for NN queries based on spatial access methods (e.g., quad-trees, R-trees). For all these algorithms, depth-first search (DFS) and breadth-first search (BFS) algorithms are two most common branch-and-bound...

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   1,599.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD   1,999.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Recommended Reading

  • Roussopoulos N, Kelley S, Vincent F (1995) Nearest neighbor queries. In: Proceedings of the ACM SIGMOD international conference on management of data, San Jose, pp 71–79

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chang-Tien Lu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this entry

Cite this entry

Chen, F., Lu, CT. (2017). Nearest Neighbor Query, Definition. In: Shekhar, S., Xiong, H., Zhou, X. (eds) Encyclopedia of GIS. Springer, Cham. https://doi.org/10.1007/978-3-319-17885-1_866

Download citation

Publish with us

Policies and ethics