Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
K-d tree
K-d tree is a binary tree data structure for organizing a set of points in
a K-dimensional space.
Each internal node is associated with an axis aligned hyper-plane
splitting its associated points into two sub-trees.
Dimensions with high variance are chosen first.
Position of the splitting hyper-plane is chosen as the mean/median of
the projected points balanced tree.
l
1
l2
l1 6
3
1
l4
l3
l2
l5
l7
l6
10
l8
l10
11
l9
2
11
10
l1 6
l9
l5
l1
7
l6
l2
5
9
l8 3
1
l4
l10 10
l3
l2
l3
l4
l7
l5
l7
l6
2
11
l8
1
2
3
l10
11
9
l9
8
10
l1 6
l9
l5
l6
q
l2
5
9
l8 3
1
l4
l1
l10 10
l3
l2
l3
l4
l7
l5
l7
l6
2
11
l8
1
2
3
l10
11
9
l9
8
10
Figure: A. Moore
Feature vector
0
Fergus et al
1
0
N
Hash function
hr1rk
Xi
<< N
Hash table
110101
hr1rk
110111
111101
New query
results
Decision Trees
20 Questions Game
Test time
Evaluate the tree by sequentially evaluating questions,
starting from the root node. Once a particular leaf node
is reached, we predict the class to be the one with the
most examples (from training set) at this node.