开发者

KD-tree in a MongoDB DB collection

开发者 https://www.devze.com 2023-02-21 03:35 出处:网络
I am trying to solve the k nearest neighbor problem on a 开发者_JAVA百科set of objects in 3-space.These objects live in a MongoDB collection with all the joy and sorrow that comes with document based

I am trying to solve the k nearest neighbor problem on a 开发者_JAVA百科set of objects in 3-space. These objects live in a MongoDB collection with all the joy and sorrow that comes with document based storage. Given one object I would like to find the k nearest neighbors in the fewest queries as possible. the collection sized is expected to be about 10^5 and k is between 10 and 50. I would really prefer not to have to store the entire tree in memory.

How could one store a KD-Tree in a MongoDB collection?

0

精彩评论

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

关注公众号