Nearest Neighbor Search
Nearest Neighbor Search
Input
Output
Input: Description: A set S of n point in d dimensions; a query point q. Problem: Which point in S is closest to q?
Overview
Excerpt from: the need to quickly find the nearest neighbor to a query point arises in a variety of geometric applications. The classic example in two dimensions is designing a system to dispatch emergency vehicles to the scene of a fire. Once the dispatcher learns the location of the fire, she uses a map to find the firehouse closest to this point so as to minimize transportation delays. This situation occurs in any application mapping customers to service providers. Nearest-neighbor search is also important in classification. Suppose we are given a collection of data about people (say age, height, weight, years of education, sex, and income level) each of whom has been labeled as Democrat or Republican. We seek a classifier to decide wich way a different person is likely to vote. Each of the people in our data set is represented by a partylabeled point in n-dimensional feature space. A simple classifier can be built by assigning to new point the party affiliation its nearest neighbor. notice: The nearest neighbor method was initially introduced by J.G. Skellam where the ratio of ex