Abstract
In the -nearest neighborhood model (-NN), we are given a set of points , and we shall answer queries by returning the nearest neighbors of in according to some metric. This concept is crucial in many areas of data analysis and data processing, e.g., computer vision, document retrieval and machine learning. Many -NN algorithms have been published and implemented, but often the relation between parameters and accuracy of the computed -NN is not explicit. We study property testing of -NN graphs in theory and evaluate it empirically: given a point set and a directed graph , is a -NN graph, i.e., every point has outgoing edges to its nearest neighbors, or is it -far from being a -NN graph? Here, -far means that one has to change more than an -fraction of the edges in order to make a -NN graph. We develop a randomi