简体   繁体   English

Boost R-Tree中的最小边界矩形计算

[英]Minimum Bounding Rectangle calculation in Boost R-Tree

Minimum Bounding Rectangles is a pre-requisite for R-Tree creation.最小边界矩形是创建 R 树的先决条件。 What algorithm does Boost C++ library use for MBR creation given a set of points?给定一组点,Boost C++ 库使用什么算法来创建 MBR?

Probably the obvious one.可能是显而易见的。

Iterate over the contents and store the minimum bounds.迭代内容并存储最小边界。

That is O(n) and you can't do any better than O(n), at the same time the algorithm is as easy a it gets, so it will come with small constant factors, too.那是 O(n) 并且你不能做得比 O(n) 更好,同时算法很简单,所以它也会带有小的常数因子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM