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

快速且小型的子采样 r-index

Fast and Small Subsampled R-indexes

Dustin Cobas, Travis Gagie, Gonzalo Navarro

AI总结:

提出 sr-index 及其变体 r-csa、sr-csa,通过子采样文本位置在时间和空间间取得平衡,在保持查询性能的同时显著减少索引空间占用。

摘要:

r-index 在重复文本集合的压缩索引方面取得了突破,在查询时间上比其他替代方案快了几个数量级。然而,其空间占用为 O(r)(其中 r 是文本 Burrows-Wheeler Transform 中的游程数量),高于 Lempel-Ziv (LZ) 和基于文法的索引,这使得它在各种重复性较温和的实际场景中缺乏吸引力。我们提出了 sr-index,这是一种将长度为 n 的文本和给定参数 s 的空间限制在 O(min(r,n/s)) 的变体,代价是每次报告出现的时间乘以 s。sr-index 是通过对 r-index 索引的文本位置进行子采样获得的,仍然能够支持具有保证性能的模式匹配。我们的实验表明,理论分析不足以描述 sr-index 的实际优势,因为它在真实文本上的表现远好于在合成文本上的表现:sr-index 保持了 r-index 的性能,同时使用的空间减少了 1.5-4.0 倍,在时间和空间两方面都大幅优于重复文本上几乎所有其他压缩索引。只有一种特定的基于 LZ 的索引使用的空间比 sr-index 少,但它的速度慢了一个数量级。我们的第二个贡献是 r-csa 和 sr-csa 索引。就像 r-index 将著名的 FM-Index 适应于重复文本一样,r-csa 将 Sadakane 的 Compressed Suffix Array (CSA) 适应于这种情况。我们表明,在 r-index 上使用的原理可以自然且高效地融入 CSA 框架中。sr-csa 是 r-csa 的相应子采样版本。虽然 CSA 在字母表大于 DNA 的经典文本上表现优于 FM-Index,但我们表明 sr-csa 在这些较大字母表和某些 DNA 文本的重复文本上也优于 sr-index。

英文摘要:

The $r$-index represented a breakthrough in compressed indexing of repetitive text collections, outperforming its alternatives by orders of magnitude in query time. Its space usage, $O(r)$ where $r$ is the number of runs in the Burrows--Wheeler Transform of the text, is however higher than Lempel--Ziv (LZ) and grammar-based indexes, and makes it uninteresting in various real-life scenarios of milder repetitiveness. We introduce the $sr$-index, a variant that limits the space to $O(\min(r,n/s))$ for a text of length $n$ and a given parameter $s$, at the expense of multiplying by $s$ the time per occurrence reported. The $sr$-index is obtained subsampling the text positions indexed by the $r$-index, being still able to support pattern matching with guaranteed performance. Our experiments show that the theoretical analysis falls short in describing the practical advantages of the $sr$-index, because it performs much better on real texts than on synthetic ones: the $sr$-index retains the performance of the $r$-index while using 1.5--4.0 times less space, sharply outperforming {\em virtually every other} compressed index on repetitive texts in both time and space. Only a particular LZ-based index uses less space than the $sr$-index, but it is an order of magnitude slower. Our second contribution are the $r$-csa and $sr$-csa indexes. Just like the $r$-index adapts the well-known FM-Index to repetitive texts, the $r$-csa adapts Sadakane's Compressed Suffix Array (CSA) to this case. We show that the principles used on the $r$-index turn out to fit naturally and efficiently in the CSA framework. The $sr$-csa is the corresponding subsampled version of the $r$-csa. While the CSA performs better than the FM-Index on classic texts with alphabets larger than DNA, we show that the $sr$-csa outperforms the $sr$-index on repetitive texts over those larger alphabets and some DNA texts as well.

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

↑