general tree data structure
Lets discuss properties
(I have to implement one anyway...)
I need
- fast child lookup
- fast insertion/deletion of child nodes
- detection of equivalent paths (potential tree)
- different amount of memory in every node
- mark of a main variation
chrislaw
Re: general tree data structure
Well, my requirements are not very demanding.
I need something to store Registry data. I was
thinking along the lines of something derived from
CTree (if found) that I could tailor to Registry
information (CRegTree). The access methods would
be similar to the API Registry routines (path
oriented).
FYI, this is for a client/server Registry engine.
Re: general tree data structure
There seems to be some BTree source for C++ on the simtel site
http://oak.oakland.edu/simtel.net
I havent seen the code..
Re: general tree data structure
BTree's are great for sorted data...
(Binary Tree, each node has two branches, etc)
But that's not what I'm looking for.
Plus...I just got moved to another project,
but I will still be glad to help anyway I can.
Re: general tree data structure
A BTree is not merely a binary tree but also sorts data and uses the AVL algorithm for optimized height balancing for quick retrieval.
Check Knuth, but he probably uses the term AVL trees. A mere binary tree is quite trivial anyway.