Damn Cool Algorithms: BK-Trees
blog.notdot.net
blog.notdot.net
Can anyone please explain me in more simpler terms.
Pick an arbitrary point (in the dataset) and call it test. The distance between test and query is d. Now, you can see the distance between test and the furthest and closest points in answers are d+n and d-n, respectively (assuming d > n).
Since the dataset is organized by distance, we can quickly narrow the range of search.