C# 区间树类
我正在寻找一个区间树 C# 集合类。
我需要能够添加间隔,最好是二维间隔,否则也许我可以组合两个标准的一维间隔树。
我还需要能够找出哪些间隔与给定间隔重叠。
我找到了这个 intervaltree.codeplex.com 但是
没有与此版本相关的下载。
编辑:
继续此处:C# 使用其他代码
I'm looking for an interval tree C# collection class.
I need to be able to add intervals, idealy 2D, otherwise perhaps I could combine two standard 1D interval trees.
I also need to be able to find out what intervals overlap a given interval.
I found this intervaltree.codeplex.com but
There are no downloads associated with this release.
edit:
Continue here: C# using others code
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您可以找到间隔树的另一个 C# 实现(基于自平衡 avl 树)@ http:// code.google.com/p/intervaltree/
you can find another c# implementation for an interval tree (based on a self balancing avl tree) @ http://code.google.com/p/intervaltree/
对于未来的访问者,我也编写了一个实现 https://github.com/vvondra/Interval-Tree
For future visitors, I've written an implementation as well https://github.com/vvondra/Interval-Tree
另一种实现可以在 https://github.com/erdomke/RangeTree 找到。与其他实现不同,它的目标是尽可能拥有类似于 IDictionary的接口。它可以按如下方式使用:
Yet another implementation can be found at https://github.com/erdomke/RangeTree. Unlike other implementations, it aims to have an interface that is similar to
IDictionary<TKey, TValue>
where possible. It can be used as follows:我刚刚编写了另一个实现,可以在这里找到:
https://github.com/mbuchetics/RangeTree
它还带有一个异步版本,可以使用以下命令重建树任务并行库(TPL)。
I just wrote another implementation which can be found here:
https://github.com/mbuchetics/RangeTree
It also comes with an asynchronous version which rebuilds the tree using the Task Parallel Library (TPL).
codeplex 页面上有一个下载: http://intervaltree.codeplex.com/SourceControl/list/变更集 ->右手边->下载
There is a download on the codeplex page: http://intervaltree.codeplex.com/SourceControl/list/changesets -> Right hand side -> Download