Intro: kd-tree
Brief review of Binary Search Tree
Binary Search Tree is
unbalanced
(different distance from root to leaf nodes)
Definition: kd-tree
Example:
Properties of a kd-tree
Top level:
(using search key x1)
Properties of a kd-tree
Second level:
(using search key x1, and
y1 and
y2)
I.e.:
just like a Binary Search Tree
- but with
multiple sets of keys
❮
❯