arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.24080cs.DS
收藏

动态语法压缩自索引在δ-最优空间中

Dynamic Grammar-Compressed Self-Index in $δ$-Optimal Space

RIKEN Center for Advanced Intelligence Project(理化学研究所先进智能项目中心)

Takaaki Nishimoto, Yasuo Tabei

AI总结:

本文提出动态RR索引,首次在δ-最优空间内实现动态语法压缩自索引,支持高效插入删除和定位查询,优于现有动态索引。

摘要:

压缩的自索引在压缩形式中存储字符串,同时支持定位查询而无需解压。对于高度重复的字符串(出现在网络爬虫、版本文档和基因组集合中),静态自索引可以达到$δ$-最优下界$Ω(δ\log(n \log σ/ (δ\log n)) \log n)$位,至多常数因子。然而,动态自索引却仍然稀缺:每一个现有的动态自索引要么无法达到$δ$-最优空间,要么在定位查询时每次报告出现至少需要$Θ(\log n)$时间,或者在更新时间内暴露文本的最长公共前缀(LCP)。我们提出了动态RR索引,这是一种基于受限重压缩运行长度直线程序(RLSLP)的动态语法压缩自索引。据我们所知,这是首个达到$δ$-最优空间的动态自索引。该索引占用预期$O(δ\log(n \log σ/ (δ\log n)) \log n)$位,定位查询时间预期为$O(m + \log m \log^{2} n + \mathit{occ} (\log n / \log \log n))$(其中$m$是模式长度,$\mathit{occ}$是出现次数),并支持在预期的均摊时间$O(m' \log^{2} n + \log^{3} n)$内插入和删除长度为$m'$的子串,不依赖LCP。在十一高度重复的语料库上,包括一个37GB维基百科备份和一个59GB人类染色体集合,动态RR索引在更新上比动态r-index快至多77倍,在定位上比其他动态索引快至多11倍。

英文摘要:

A compressed self-index stores a string in compressed form while supporting locate queries without decompression. For highly repetitive strings, such as those arising in web crawls, versioned documents, and genomic collections, static self-indexes can match the $δ$-optimal lower bound of $Ω(δ\log(n \log σ/ (δ\log n)) \log n)$ bits up to constant factors, where $n$ is the string length, $σ$ is the alphabet size, and $δ$ is the substring complexity. Their dynamic counterparts, however, remain scarce: every existing dynamic self-index either fails to attain $δ$-optimal space, pays $Ω(\log n)$ time per reported occurrence for locate queries, or has an update time that grows with the maximum value in the longest common prefix (LCP) array of the text. We present the dynamic RR-index, a dynamic grammar-compressed self-index built on the restricted recompression run-length straight-line program (RLSLP). To our knowledge, it is the first dynamic self-index to attain $δ$-optimal space. The index uses $O(δ\log(n \log σ/ (δ\log n)) \log n)$ bits in expectation, answers locate queries in expected $O(m + \log m \log^{2} n + \mathit{occ} (\log n / \log \log n))$ time, where $m$ is the pattern length and $\mathit{occ}$ is the number of occurrences, and supports insertion of a length-$m'$ string and deletion of a length-$m'$ substring in expected amortized $O(m' \log^{2} n + \log^{3} n)$ time, with no dependence on the maximum LCP value. On eleven highly repetitive corpora, including a $37$ GB Wikipedia dump and a $59$ GB human-chromosome collection, the dynamic RR-index is up to $77\times$ faster than the dynamic r-index for updates and up to $11\times$ faster than other dynamic indexes for locate queries.

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

↑