Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Trees in C++

Reply
Thread Tools

Trees in C++

 
 
Adam Hartshorne
Guest
Posts: n/a
 
      02-18-2006
Can anybody point me in the direction of a decent general purpose tree
data structure, as I have been less than impressed by the core::tree<>
discussed on gamedev.net

Adam
 
Reply With Quote
 
 
 
 
Daniel T.
Guest
Posts: n/a
 
      02-18-2006
In article <43f67da3$>,
Adam Hartshorne <> wrote:

> Can anybody point me in the direction of a decent general purpose tree
> data structure, as I have been less than impressed by the core::tree<>
> discussed on gamedev.net


To do an nary tree, I do:

std::map< Key, std::vector<Key> >

--
Magic depends on tradition and belief. It does not welcome observation,
nor does it profit by experiment. On the other hand, science is based
on experience; it is open to correction by observation and experiment.
 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      02-18-2006
Adam Hartshorne wrote:
> Can anybody point me in the direction of a decent general purpose tree
> data structure, as I have been less than impressed by the core::tree<>
> discussed on gamedev.net


Have you tried googling for it?

IIRC, there is a graph library (part of Boost libraries, methinks).
A tree is a directional acyclic graph.


V
--
Please remove capital As from my address when replying by mail


 
Reply With Quote
 
gottlobfrege@gmail.com
Guest
Posts: n/a
 
      02-18-2006

Victor Bazarov wrote:
> Adam Hartshorne wrote:
> > Can anybody point me in the direction of a decent general purpose tree
> > data structure, as I have been less than impressed by the core::tree<>
> > discussed on gamedev.net

>
> Have you tried googling for it?
>
> IIRC, there is a graph library (part of Boost libraries, methinks).
> A tree is a directional acyclic graph.
>


I second that idea.
You can also take at the 'forest' object at opensource.adobe.com.

 
Reply With Quote
 
irfan.abhi@gmail.com
Guest
Posts: n/a
 
      02-18-2006
STL Trees are implemented as RED-BLACK Binary Tree.

Regards,
www.faqden.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binary search trees (AVL trees) jacob navia C Programming 34 01-08-2010 07:27 PM
B+-trees Rico Java 10 08-02-2004 03:32 PM
Trees in the Java Collections framework Joona I Palaste Java 5 06-09-2004 10:42 AM
Binary Trees jova Java 11 04-26-2004 06:41 AM
Trees in java Pif Java 1 04-06-2004 11:48 AM



Advertisments