Top Tree Compression of Tries
Abstract
We present a compressed representation of tries based on top tree compression [ICALP 2013] that works on a standard, comparison-based, pointer machine model of computation and supports efficient prefix search queries. Namely, we show how to preprocess a set of strings of total length over an alphabet of size into a compressed data structure of worst-case optimal size that given a pattern string of length determines if is a prefix of one of the strings in time . We show that this query time is in fact optimal regardless of the size of the data structure. Existing solutions either use space or rely on word RAM techniques, such as tabulation, hashing, address arithmetic, or word-level parallelism, and hence do not work on a pointer machine. Our result is the first solution on a pointer machine that achieves worst-case space. Along the way, we develop several interesting data structures that work on a pointer machine and are of independent interest. These include an optimal data structures for random access to a grammar-compressed string and an optimal data structure for a variant of the level ancestor problem.
Cite
@article{arxiv.1902.02187,
title = {Top Tree Compression of Tries},
author = {Philip Bille and Inge Li Gørtz and Paweł Gawrychowski and Gad M. Landau and Oren Weimann},
journal= {arXiv preprint arXiv:1902.02187},
year = {2019}
}
Comments
Extended abstract appeared at ISAAC 2019