โ† Back to Index

๐Ÿ“ KD-Tree

Data Structure ยท Spatial Partitioning
0
Points
0
Depth
โ€”
NN Distance
Ready
Status
120 ms
X-split line
Y-split line
Point
Query / Path
Nearest neighbor

How it works

A KD-tree recursively partitions 2D space by alternating between X and Y axes. Each node splits the plane with a vertical (red) or horizontal (blue) line.