arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14461cs.DS
收藏

面向大字母表字符串的 Rank/Select 数据结构工程实现

Engineering Rank/Select Data Structures for Large-Alphabet Strings

Diego Arroyuelo, Gabriel Carmona, Héctor Larrañaga, Francisco Riveros, Carlos Eugenio Rojas-Morales, Erick Sepúlveda

AI总结:

本文针对大字母表字符串提出一种基于字母表划分的压缩数据结构,高效支持 rank 和 select 操作,并在倒排列表求交、游程压缩和分布式计算等应用中显著提升性能。

摘要:

大字母表字符串在信息检索和自然语言处理等场景中十分常见。对此类字符串进行高效存储和处理通常会带来若干在小字母表字符串中不会遇到的挑战。本文研究处理大字母表字符串最有效方法之一——字母表划分方法的高效实现。主要贡献是一种压缩数据结构,能够高效支持基本操作 rank 和 select。我们给出的实验结果表明,我们的实现优于当前字母表划分方法的现有实现。特别是,select 操作的执行时间可提升约 80%,而相比当前字母表划分方案仅多用 11% 的空间。我们还展示了该数据结构在若干应用中的影响,例如倒排列表求交(在仅增加 2% 额外空间的情况下,性能提升最高可达 60%)、游程长度压缩字符串的表示,以及 rank 和 select 操作的分布式计算处理。在游程长度压缩字符串这一特定情形下,我们对高重复文本的 Burrows-Wheeler 变换进行的实验表明,仅使用现有最先进 RLFM 索引约 0.98 至 1.09 倍的空间(取决于文本),统计模式在文本中出现次数的过程可以快 1.23 至 2.33 倍。

英文摘要:

Large-alphabet strings are common in scenarios such as information retrieval and natural-language processing. The efficient storage and processing of such strings usually introduces several challenges that are not witnessed in small-alphabets strings. This paper studies the efficient implementation of one of the most effective approaches for dealing with large-alphabet strings, namely the \emph{alphabet-partitioning} approach. The main contribution is a compressed data structure that supports the fundamental operations $rank$ and $select$ efficiently. We show experimental results that indicate that our implementation outperforms the current realizations of the alphabet-partitioning approach. In particular, the time for operation $select$ can be improved by about 80%, using only 11% more space than current alphabet-partitioning schemes. We also show the impact of our data structure on several applications, like the intersection of inverted lists (where improvements of up to 60% are achieved, using only 2% of extra space), the representation of run-length compressed strings, and the distributed-computation processing of $rank$ and $select$ operations. In the particular case of run-length compressed strings, our experiments on the Burrows-Wheeler transform of highly-repetitive texts indicate that by using only about 0.98--1.09 times the space of state-of-the-art RLFM-indexes (depending on the text), the process of counting the number of occurrences of a pattern in a text can be carried out 1.23--2.33 times faster.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑