Storing a Trie with Compact and Predictable Space
arXiv:2302.03690
Abstract
This paper proposed a storing approach for trie structures, called coordinate hash trie. The basic idea is using a global hash table with a special hash function to store all edges of a trie. For a trie with nodes and an alphabet with size , the execution time of finding, inserting and deleting a child node, is for the average case, for the worst case. The space used by this approach is , unrelated to . The constant of space consumption is predictable, with no need for reallocation or resizing. In addition, this approach is very easy to implement.
7 pages, 1 figure