Trie implementation

Anton Kazennikov picture Anton Kazennikov · Jun 24, 2009 · Viewed 40.9k times · Source

Is there any speed- and cache-efficient implementations of trie in C/C++? I know what a trie is, but I don't want reinvent the wheel, implementing it myself.

Answer

SashaN picture SashaN · Jun 24, 2009

if you are looking for an ANSI C implementation you can "steal" it from FreeBSD. The file you are looking for is called radix.c. It's used for managing routing data in kernel.