Boost logo

Boost Users :

From: Peter Petrov (ppetrov_at_[hidden])
Date: 2005-09-16 19:05:36


Elisha Berns wrote:
> 1) What type of algorithm/container should be used here?

You need some kind of a Trie - http://en.wikipedia.org/wiki/Trie

> 2) Would its performance be much better than a general purpose
> associative container?

Performance-wise, it should be about the same as a hash_map.
Memory-wise, a trie should be much better.

AFAIK there is nothing resembling a trie in Boost, but there are other
free implementations available.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net