In what scenario does vectorized brute-force nearest-neighbor search outperform tree-based indices?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks when an exact brute-force nearest-neighbor scan written as matrix math beats k-d trees and ball trees. Tests understanding of when tree pruning stops paying off, what building and traversing an index costs, and how hardware and query batching change the trade-off.