Why does KD-tree search need to backtrack into the opposite half-space during a query?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks why a KD-tree nearest-neighbor query must sometimes search the opposite side of a splitting plane after reaching a leaf. Tests the backtracking test that keeps the search exact, how pruning works, and why the method slows down as dimensionality grows.