Storing a Trie with Compact and Predictable Space

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

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…