Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is k-d tree efficient for kNN search. k nearest neighbors search

I have to implement k nearest neighbors search for 10 dimensional data in kd-tree.

But problem is that my algorithm is very fast for k=1, but as much as 2000x slower for k>1 (k=2,5,10,20,100)

Is this normal for kd trees, or am I doing something worng?

like image 724
Andraz Avatar asked Jan 09 '10 17:01

Andraz


1 Answers

I know this question has been answered, but for more detail on KNN searches with k-d trees, see Bentley (1975:514), Communications of the ACM 18(9), September.

like image 156
fluffels Avatar answered Oct 04 '22 02:10

fluffels