Assume data \(|D| = n\) where \(D \subset {\mathbb {R}}^d\). k-NN classification 11 for a query point \(p \in D\) only has two steps: (1) To compute the distinct ...