Wikipedia: "k-nearest Neighbor Algorithm"

Make sure you know how the k-nearest neighbor algorithm works (in principle) after reading this entry.