All instances correspond to points in the n-D space.
The nearest neighbor are defined in terms of Euclidean distance.
The target function could be discrete- or real- valued.
For discrete-valued, the k-NN returns the most common value among the k training examples nearest to xq.
Vonoroi diagram: the decision surface induced by 1-NN for a typical set of training examples.