When would you use a ball tree instead of a KD-tree for nearest-neighbor search?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks when a ball tree is the better choice over a KD-tree for exact nearest-neighbor search. Tests how each tree partitions space, how triangle-inequality pruning behaves as dimension grows, and which distance metrics each structure can support.