c-trie++: A dynamic trie tailored for fast prefix searches
c-trie++: A dynamic trie tailored for fast prefix searches
复制标题
c-trie:专为快速前缀搜索而定制的动态特里树
DOI:
10.1016/j.ic.2021.104794
复制
发表时间:
2021
影响因子:
1
通讯作者:
Masayuki Takeda
中科院分区:
文献类型:
--
作者:
Kazuya Tsuruta;Dominik Koeppl;Shunsuke Kanda;Yuto Nakashima;Shunsuke Inenaga;Hideo Bannai;Masayuki Takeda
Given a dynamic set K of k strings of total length n whose characters are drawn from an alphabet of size σ, a keyword dictionary is a data structure built on K that provides lookup, prefix search, and update operations on K. Under the assumption that α= w/lg σ characters fit into a single machine word of w bits, we propose a keyword dictionary that represents K in either n lg σ+ Θ (k lg n) or| T| lg σ+ Θ (k w) bits of space, where| T| is the number of nodes of a trie representing K. It supports all operations in O (m/α+ lg α) expected time on an input string of length m in the word RAM model. An evaluation of our implementation highlights the practical usefulness of the proposed data structure, especially for prefix searches—one of the most essential keyword dictionary operations.