Back to top

Double-Array Trie

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2404 of /usr/share/drupal7/includes/

datrie is an implementation of double-array structure for representing trie, as proposed by Junichi Aoe.

Trie is a kind of digital search tree, an efficient indexing method with O(1) time complexity for searching. Comparably as efficient as hashing, trie also provides flexibility on incremental matching and key spelling manipulation. This makes it ideal for lexical analyzers, as well as spelling dictionaries.

See the details of the implementation at:

Historically, this was first implemented as C++ classes in a library called midatrie, but later simplified and rewritten from scratch in C.