CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    15

    best STL method to implement a binary tree

    What's the best STL class or method to implement a binary tree?

    I know some STL classes are stored as binary trees internally, but this is not what I want. I wish to create and have full control of the binary tree's structure.

    A red-black binary tree will do no good, as the structure changes on its own. The tree must remain exactly as I wish to set it. (Red-black binary trees stored extra info which allow the tree to be modified so that it remains "even" in height.)
    Matthew Doucette / Xona Games
    ...our upcoming dual play Xbox 360 2D shooter: Duality ZF

  2. #2
    Join Date
    Apr 2005
    Location
    Norway
    Posts
    3,934

    Re: best STL method to implement a binary tree

    Quote Originally Posted by Matthew Doucette
    I wish to create and have full control of the binary tree's structure.
    Well, then I'm afraid you'll have to do it yourself.

    - petter

  3. #3
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    15

    Re: best STL method to implement a binary tree

    Thanks. That's what I concluded, but I wanted to check just in case I missed something.
    Matthew Doucette / Xona Games
    ...our upcoming dual play Xbox 360 2D shooter: Duality ZF

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured