开发者

Is there a disk based nearest neighbour data structure?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜