线段树的发明者:Bentley,我会好好记住他的 = =。

来源:互联网 发布:曲靖市罗平县经济数据 编辑:程序博客网 时间:2024/04/28 12:46
The primary task performed by a segment tree is the same as that done by
an interval tree: keeping track of a set of n intervals, here assumed to be halfopen,
and listing for a given query key all the intervals that contain that key in
output-sensitive time O(log n+ k), if the output consisted of k intervals. It is
slightly worse at this task than the interval tree, having a space requirement of
O(n log n) instead of O(n). But the segment tree, or the idea of the canonical
interval decomposition on which it is based, is really a framework on which
a number of more general tasks can be performed. Again it is a static data
structure. Segment trees were invented by Bentley.
原创粉丝点击