PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.cplus > asymptotics of tree versus map
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
asymptotics of tree versus map

Réponse
 
LinkBack Outils de la discussion
Vieux 07/02/2008, 00h30   #1
Travis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut asymptotics of tree versus map

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?
  Réponse avec citation
Vieux 07/02/2008, 00h57   #2
Kaz Kylheku
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: asymptotics of tree versus map

On Feb 6, 4:30pm, Travis <travis.bow...@gmail.com> wrote:
> Thoughts?


How many of these GUI menu objects are actually instantiated in
production software that uses the GUI? How broad and deep is the
actual tree?

Does it matter whether a replacement data structure ``beats it out''
in asymptotic performance?

Will an actual user of actual software perceive difference in response
time when navigating these menus?
  Réponse avec citation
Vieux 07/02/2008, 03h31   #3
Travis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: asymptotics of tree versus map

On Feb 6, 4:57pm, Kaz Kylheku <kkylh...@gmail.com> wrote:
> On Feb 6, 4:30pm, Travis <travis.bow...@gmail.com> wrote:
>
> > Thoughts?

>
> How many of these GUI menu objects are actually instantiated in
> production software that uses the GUI? How broad and deep is the
> actual tree?
>
> Does it matter whether a replacement data structure ``beats it out''
> in asymptotic performance?
>
> Will an actual user of actual software perceive difference in response
> time when navigating these menus?


It's an administration menu for a kiosk device. I really can't go into
more details. Imagine an ATM. I'd say any given node (read: menu)
might have 8-10 children (submenus). It's so much that I'm looking for
a faster alternative, but more looking for a vetted, rock-solid,
structure that is both efficient and stable.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 06h30.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,60046 seconds with 11 queries