小波Trie:在压缩空间中维护索引字符串序列
The Wavelet Trie: Maintaining an Indexed Sequence of Strings in Compressed Space
摘要:
索引的字符串序列是用于存储字符串序列的数据结构,该字符串序列支持随机访问、搜索、范围计数和分析操作,用于精确匹配和前缀搜索。字符串序列是面向列的数据库、日志处理以及其他存储和查询任务的核心。在这些应用程序中,每个字符串可以出现多次,并且字符串在序列中的顺序是相关的。字符串的前缀结构也是相关的:在字符串中寻找共同的前缀以从序列中提取有趣的特征。此外,空间效率是非常可取的,因为它直接转化为更高的性能,因为更多的数据可以容纳在快速内存中。我们介绍和研究的问题,压缩索引序列的字符串,表示索引序列的字符串在接近最佳的压缩空间,无论是在静态和动态设置,同时保持可证明的良好性能的支持操作。我们提出了一种新的数据结构,小波Trie,它结合了经典的Patricia Trie与小波树,一个简洁的数据结构存储压缩序列。由此产生的小波Trie平滑地适应随时间变化的字符串序列。它通过支持动态字母表(即不同字符串的集合)和前缀查询(这两者在上述应用中都是至关重要的要求)来改进最先进的压缩数据结构,并且通过将空间占用减少到接近序列的熵来改进传统索引。
英文摘要:
An indexed sequence of strings is a data structure for storing a string sequence that supports random access, searching, range counting and analytics operations, both for exact matches and prefix search. String sequences lie at the core of column-oriented databases, log processing, and other storage and query tasks. In these applications each string can appear several times and the order of the strings in the sequence is relevant. The prefix structure of the strings is relevant as well: common prefixes are sought in strings to extract interesting features from the sequence. Moreover, space-efficiency is highly desirable as it translates directly into higher performance, since more data can fit in fast memory. We introduce and study the problem of compressed indexed sequence of strings, representing indexed sequences of strings in nearly-optimal compressed space, both in the static and dynamic settings, while preserving provably good performance for the supported operations. We present a new data structure for this problem, the Wavelet Trie, which combines the classical Patricia Trie with the Wavelet Tree, a succinct data structure for storing a compressed sequence. The resulting Wavelet Trie smoothly adapts to a sequence of strings that changes over time. It improves on the state-of-the-art compressed data structures by supporting a dynamic alphabet (i.e. the set of distinct strings) and prefix queries, both crucial requirements in the aforementioned applications, and on traditional indexes by reducing space occupancy to close to the entropy of the sequence.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。