Given a set of data points
and a query point
, and an integer
, the
nearest neighbors (
NN) query is to find a result set
that consists of
data points such that for any
and any
,
.
Nearest neighbor queries have received intensive attention in spatial database community in the
past decade. A
NN query has various applications in spatial databases. Consider, for example,
a set of points in two dimensions representing cities. A
NN query may be issued to find ``what
are the
closest cities from a point
". In this section, we present a brief overview of the
work done on
NN queries. Since
NN queries are widely studied by the researchers in different
problem settings, we categorise the related work according to the characteristics of problem settings
as follows.
In Section , we overview the related work on snapshot
NN queries. Previous work
on continuous monitoring of
NN queries is given in Section
. Section
surveys the work on
NN queries over spatial networks. Approximate
NN queries are presented in
Section
.
Section
reviews the work on distributed processing of
NN queries.