In other words: if the distance to the partition is larger than the distance to our closest neighbor, we know that none of the data points inside that partition can be closer.![]()
Fig: Partitioning the feature space.
![]()
Fig 2: The bounding of the distance between →xt and →x with KD-trees and Ball trees (here →x is drawn twice, once for each setting). The distance can be dissected into two components d(→xt,→x)=d1+d2, where d1 is the outside ball/box component and d2 the component inside the ball/box. In both cases d1 can be lower bounded by the distance to the wall, dw, or ball, db, respectively i.e. d(→xt,→x)=d1+d2≥dw+d2≥dw.
Tree Construction:![]()
![]()
Fig: The partitioned feature space with corresponding KD-tree.
Which partitions can be pruned?![]()
Note: Steps 3 & 4 pick the direction with a large spread (x1−x2)![]()