Storing a Trie with Compact and Predictable Space
Data Structures and Algorithms
2023-03-28 v4
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.
Cite
@article{arxiv.2302.03690,
title = {Storing a Trie with Compact and Predictable Space},
author = {Yuxuan Dong},
journal= {arXiv preprint arXiv:2302.03690},
year = {2023}
}
Comments
7 pages, 1 figure