English

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 nn nodes and an alphabet with size mm, the execution time of finding, inserting and deleting a child node, is O(1)O(1) for the average case, O(m)O(m) for the worst case. The space used by this approach is O(n)O(n), unrelated to mm. The constant of space consumption is predictable, with no need for reallocation or resizing. In addition, this approach is very easy to implement.

Keywords

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

R2 v1 2026-06-28T08:34:30.595Z