Open fehlmach opened 7 years ago
Would this be useful: https://github.com/derekparker/trie ?
That's a string trie; what we want is an address prefix trie. Adapting a string trie to a prefix trie with arbitrary prefix lengths would imply runtime inefficiency that would make the exercise not worth it.
Last I checked, there was no such generic address prefix trie implementation available.
We currently have a binary trie data structure. Make it generic and use a n-trie where n is configurable