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

Suffixient Arrays:一种新型高效后缀数组压缩技术

Suffixient Arrays: a New Efficient Suffix Array Compression Technique

Davide Cenzato, Lore Depuydt, Travis Gagie, Sung-Hwan Kim, Giovanni Manzini, Francisco Olivares, Nicola Prezza

AI总结:

本文提出 Suffixient Array,仅保留后缀数组中足以通过二分搜索定位模式及 MEM 的子集,实现压缩工作空间线性构建,并在重复集合上显著快于 SA 和 r-index。

摘要:

后缀数组(Suffix Array)是一种经典文本索引,能够通过简单的二分搜索支持在线模式匹配查询。后缀数组的主要缺点是,即使文本本身具有极高的可压缩性,它仍需要占用与文本长度成线性关系的空间。文献中的若干工作已经表明后缀数组可以被压缩,但它们都依赖复杂的紧凑数据结构,而这类结构在实践中往往表现出较差的缓存局部性,从而显著拖慢查询。本文中,我们针对这一问题提出一种新的简单且非常高效的解决方案,即 Suffixient Array:它是后缀数组的一个极小子集,并且在可随机访问文本的前提下,足以通过二分搜索定位一个模式出现(通常是其所有 Maximal Exact Matches,即最大精确匹配)。我们证明:(i)Suffixient Array 的长度 χ 是一种强重复性度量;(ii)与 r-index 等大多数现有具备重复感知能力的索引不同,我们的新索引在 I/O 模型中是高效的;(iii)Suffixient Arrays 可在线性时间和压缩工作空间内计算得到。实验表明,在重复文本集合上使用成熟的压缩随机访问数据结构时,Suffixient Array \SuA 同时实现:(i)比后缀数组 \SA 更快,且空间小数个数量级;(ii)比 r-index 更小,并且速度快一到两个数量级。凭借低至每字符 3.5 ns 的平均模式匹配查询时间,我们的新索引非常接近最终下界:即我们工作站的 RAM 吞吐量(每字符 1.18 ns)。

英文摘要:

The Suffix Array is a classic text index enabling on-line pattern matching queries via simple binary search. The main drawback of the Suffix Array is that it takes linear space in the text's length, even if the text itself is extremely compressible. Several works in the literature showed that the Suffix Array can be compressed, but they all rely on complex succinct data structures which in practice tend to exhibit poor cache locality and thus significantly slow down queries. In this paper, we propose a new simple and very efficient solution to this problem by presenting the \emph{Suffixient Array}: a tiny subset of the Suffix Array \emph{sufficient} to locate on-line one pattern occurrence (in general, all its Maximal Exact Matches) via binary search, provided that random access to the text is available. We prove that: (i) the Suffixient Array length $χ$ is a strong repetitiveness measure, (ii) unlike most existing repetition-aware indexes such as the $r$-index, our new index is efficient in the I/O model, and (iii) Suffixient Arrays can be computed in linear time and compressed working space. We show experimentally that, when using well-established compressed random access data structures on repetitive collections, the Suffixient Array $\SuA$ is \emph{simultaneously} (i) faster and orders of magnitude smaller than the Suffix Array $\SA$ and (ii) smaller and \emph{one to two orders of magnitude faster} than the $r$-index. With an average pattern matching query time as low as 3.5 ns per character, our new index gets very close to the ultimate lower bound: the RAM throughput of our workstation (1.18 ns per character).

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

↑