All examples By author By category About

kevinlin1

k-d Tree Visualization

k-d Tree Visualization

k-d trees are space-partitioning data structures for organizing points in k-dimensional space. They are a useful data structure for finding, for example, the n nearest neighbors of a point in k-dimensional space.

This block provides a visualization of k-d tree creation which connects the intuition of binary trees with the concept of space partitioning.

Operation

Click on the left square to add points in a 2D projection of RGB space.

Additional Reading

Acknowledgements

Forked from ludwigschubert's block: kD-tree explorations in D3.js