发现C ++区间树算法实现

编程入门 行业动态 更新时间:2024-10-09 12:35:46
本文介绍了发现C ++区间树算法实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图找到一个高效的C ++区间树实现(最有可能基于红黑树)无病毒或限制性许可证。任何指针到一个干净的轻便独立实施?对于使用情况下,我有一点,设定的时间间隔被称为在一开始(中会有说万美元),我希望能够快速获得间隔重叠给定的时间间隔的列表。因此,一旦建成将不会改变树 - 只需要快速查询

I'm trying to find an efficient C++ interval tree implementation (mostly likely based on red black trees) without a viral or restrictive license. Any pointers to a clean lightweight standalone implementation? For the use case I have in mind, the set of intervals is known at the outset (there would be say a million) and I want to be able to quickly obtain a list of intervals that overlap a given interval. Thus the tree once built will not change -- just needs rapid queries.

推荐答案

我用C编写的基于模板的区间树实现++的 github/ekg/intervaltree 。 MIT许可。享受。

I've written a template-based interval tree implementation in C++, github/ekg/intervaltree. MIT license. Enjoy.

更多推荐

发现C ++区间树算法实现

本文发布于:2023-11-29 10:55:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1646191.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:区间   算法   发现

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!