地理空间索引如何工作?
我想知道地理空间索引(例如 MongoDB 使用的索引)是如何工作的。谁能解释一下内部使用的数据结构/算法是什么?搜索运行的时间复杂度是多少?
资源链接也很棒。
I'm wondering how a geospatial index, such as the one used by MongoDB, works. Can anyone explain what data structure/algorithm is used internally? What time complexity does a search run in?
Links to resources would be great too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据数据类型和使用模式,R-Tree 或变体 (R*, R+)或四叉树,甚至可能是kd-树。
Depending on the data type and usage pattern, either an R-Tree or variant (R*, R+) or a quadtree or perhaps even a kd-tree.
根据另一个SO问题:
According to this other SO question: