libdatrie

Double-array trie library for efficient key-value string storage

brewmacoslinux
Try with needOr install directly
Source

About

Double-Array Trie Library

Commands

trietool

Examples

Create a new trie from a word list file$ trietool -n mytrie.tri < wordlist.txt
Query a word in an existing trie$ trietool -q mytrie.tri myword
List all words stored in a trie$ trietool -l mytrie.tri