Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > asymptotics of ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 43135 of 47561
Post > Topic >>

asymptotics of tree versus map

by Travis <travis.bowers@[EMAIL PROTECTED] > Feb 6, 2008 at 04:30 PM

I'm curious how these two structures match up for my use. I've created
a custom tree which is not sorted and each node can have infinite
children. Why? Because each node is a menu in a simple GUI and the
tree is created once and traversal is then rather trivial bopping from
menu to menu is never more than one link away.

Unfortunately this tree has become a maintenance item for me and I'm
considering relieving myself of it. I thought of all the STL options
available, the map might be the one that might beat it out in
performance. Again, the map would be created once and then I'd have to
find a node based on a key value (I've been using the string name of
the menu as a unique key for the overloaded == operator used for the
tree).

Thoughts?
 




 3 Posts in Topic:
asymptotics of tree versus map
Travis <travis.bowers@  2008-02-06 16:30:36 
Re: asymptotics of tree versus map
Kaz Kylheku <kkylheku@  2008-02-06 16:57:06 
Re: asymptotics of tree versus map
Travis <travis.bowers@  2008-02-06 19:31:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 4:20:57 CDT 2008.