KD-Tree

Jon Bentley is an American computer scientist, famously known for his book Programming Pearls. He also came up with the data structure called k-d tree while an undergrad at Stanford and published it in a paper titled Multidimensional Binary Search Trees Used for Associative Searching in 1975. In this post we study the kd-tree data structure, how to construct and perform queries on it. Then we…