开发者

Is there a disk based nearest neighbour data structure?

开发者 https://www.devze.com 2023-01-25 18:58 出处:网络
I have a dataset for which I need to find the K nearest neighbours, or all the neighbours within a distance d. The dataset has a custom distance defined but it is not an Euclidean distance.

I have a dataset for which I need to find the K nearest neighbours, or all the neighbours within a distance d. The dataset has a custom distance defined but it is not an Euclidean distance.

I have used metric trees before, mostly the cover tree. In this case, however, my dataset is going to be larger t开发者_如何学JAVAhan the available memory. So, is there any data structure that can be used for nearest neighbours on a disk stored dataset? A good database index for this operation would also be useful.


You could use the cover tree to hold pointers to your disk dataset. The pointer would contain the relative record number and whatever additional information from the record that allows you to traverse the tree.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号