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.
Click on the left square to add points in a 2D projection of RGB
space.
After adding multiple points, click "Rebalance" on the right square to see how a newly constructed k-D tree would sort the given points.
http://pointclouds.org/documentation/tutorials/kdtree_search.php https://en.wikipedia.org/wiki/K-d_tree
https://code.jquery.com/jquery-2.2.4.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js
https://cdnjs.cloudflare.com/ajax/libs/tinycolor/1.4.1/tinycolor.min.js