<bdo id='66y04'></bdo><ul id='66y04'></ul>

    <tfoot id='66y04'></tfoot>

    <i id='66y04'><tr id='66y04'><dt id='66y04'><q id='66y04'><span id='66y04'><b id='66y04'><form id='66y04'><ins id='66y04'></ins><ul id='66y04'></ul><sub id='66y04'></sub></form><legend id='66y04'></legend><bdo id='66y04'><pre id='66y04'><center id='66y04'></center></pre></bdo></b><th id='66y04'></th></span></q></dt></tr></i><div id='66y04'><tfoot id='66y04'></tfoot><dl id='66y04'><fieldset id='66y04'></fieldset></dl></div>

    <small id='66y04'></small><noframes id='66y04'>

    <legend id='66y04'><style id='66y04'><dir id='66y04'><q id='66y04'></q></dir></style></legend>

    1. 什么是好的和稳定的 C++ 树实现?

      What#39;s a good and stable C++ tree implementation?(什么是好的和稳定的 C++ 树实现?)
        <bdo id='QFnQg'></bdo><ul id='QFnQg'></ul>
        <legend id='QFnQg'><style id='QFnQg'><dir id='QFnQg'><q id='QFnQg'></q></dir></style></legend>

      • <i id='QFnQg'><tr id='QFnQg'><dt id='QFnQg'><q id='QFnQg'><span id='QFnQg'><b id='QFnQg'><form id='QFnQg'><ins id='QFnQg'></ins><ul id='QFnQg'></ul><sub id='QFnQg'></sub></form><legend id='QFnQg'></legend><bdo id='QFnQg'><pre id='QFnQg'><center id='QFnQg'></center></pre></bdo></b><th id='QFnQg'></th></span></q></dt></tr></i><div id='QFnQg'><tfoot id='QFnQg'></tfoot><dl id='QFnQg'><fieldset id='QFnQg'></fieldset></dl></div>
        <tfoot id='QFnQg'></tfoot>
            <tbody id='QFnQg'></tbody>
          1. <small id='QFnQg'></small><noframes id='QFnQg'>

              1. 本文介绍了什么是好的和稳定的 C++ 树实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想知道是否有人可以推荐一个好的 C++ 树实现,希望是一个如果可能,与 stl 兼容.

                I'm wondering if anyone can recommend a good C++ tree implementation, hopefully one that is stl compatible if at all possible.

                为了记录,我以前写过很多次树算法,我知道这很有趣,但如果可能的话,我想变得务实和懒惰.因此,这里的目标是提供指向有效解决方案的实际链接.

                For the record, I've written tree algorithms many times before, and I know it can be fun, but I want to be pragmatic and lazy if at all possible. So an actual link to a working solution is the goal here.

                注意:我正在寻找通用树,而不是平衡树或地图/集,在这种情况下,结构本身和树的连接性很重要,而不仅仅是其中的数据.所以每个分支都需要能够保存任意数量的数据,并且每个分支都应该是可单独迭代的.

                Note: I'm looking for a generic tree, not a balanced tree or a map/set, the structure itself and the connectivity of the tree is important in this case, not only the data within. So each branch needs to be able to hold arbitrary amounts of data, and each branch should be separately iterateable.

                推荐答案

                我不知道您的要求,但是您最好使用图表(例如在 Boost Graph) 如果您主要对结构感兴趣而不是对树特定的好处,例如通过平衡提高速度?您可以通过图形模拟"一棵树,也许它(概念上)更接近您要查找的内容.

                I don't know about your requirements, but wouldn't you be better off with a graph (implementations for example in Boost Graph) if you're interested mostly in the structure and not so much in tree-specific benefits like speed through balancing? You can 'emulate' a tree through a graph, and maybe it'll be (conceptually) closer to what you're looking for.

                这篇关于什么是好的和稳定的 C++ 树实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                C++ stl unordered_map implementation, reference validity(C++ stl unordered_map 实现,参考有效性)
                C++: Is it possible to use a reference as the value in a map?(C++:是否可以使用引用作为映射中的值?)
                Where ampersand quot;amp;quot; can be put when passing argument by reference?(其中符号“amp;通过引用传递参数时可以放置吗?)
                Why can a non-const reference parameter be bound to a temporary object?(为什么可以将非常量引用参数绑定到临时对象?)
                What is a dangling reference?(什么是悬空引用?)
                C++ reference changes when push_back new element to std::vector(当 push_back 新元素到 std::vector 时,C++ 引用发生变化)
                  <tbody id='5t1Op'></tbody>

                  <i id='5t1Op'><tr id='5t1Op'><dt id='5t1Op'><q id='5t1Op'><span id='5t1Op'><b id='5t1Op'><form id='5t1Op'><ins id='5t1Op'></ins><ul id='5t1Op'></ul><sub id='5t1Op'></sub></form><legend id='5t1Op'></legend><bdo id='5t1Op'><pre id='5t1Op'><center id='5t1Op'></center></pre></bdo></b><th id='5t1Op'></th></span></q></dt></tr></i><div id='5t1Op'><tfoot id='5t1Op'></tfoot><dl id='5t1Op'><fieldset id='5t1Op'></fieldset></dl></div>
                    <legend id='5t1Op'><style id='5t1Op'><dir id='5t1Op'><q id='5t1Op'></q></dir></style></legend>

                    <small id='5t1Op'></small><noframes id='5t1Op'>

                      <bdo id='5t1Op'></bdo><ul id='5t1Op'></ul>
                      <tfoot id='5t1Op'></tfoot>