Consider a
NN query has been updated to (
)NN query where
nearest neighbors of the query
are already known. If
, then the update of the results is trivial. We only keep (
) closest objects
among
and delete all other objects. If
, then the results are updated as follows.
Let
be the distance of
nearest neighbor of the query
. The algorithm starts
calling CircularTrip with radius set equal to
and iteratively increases it by
unless all (
) nearest neighbors have been found.