动态r-index:一种LCP有界时间内可更新的自索引
Dynamic r-index: An Updatable Self-Index in LCP-bounded Time
AI总结:
针对高重复字符串场景下动态可更新自索引的构建难题,研究团队提出基于RLBWT的动态r-index,实现LCP有界时间的更新与高效查询,并通过实验验证了其在高重复数据集上的实际效率。
摘要:
自索引是一种支持定位查询的压缩数据结构——既能报告给定模式串在字符串中出现的所有位置,又能将字符串保持在压缩状态。尽管已有多种自索引被提出,但开发支持字符串插入和删除的动态可更新自索引仍是一项挑战。r-index(Gagie等人,JACM'20)是基于游程长度Burrows-Wheeler变换(RLBWT)的代表性静态自索引,专为高重复字符串设计。我们提出了动态r-index,它是r-index的动态扩展,可在LCP有界时间内完成更新。动态r-index的计数查询时间复杂度为$O(m \log r / \log \log r)$,定位查询时间复杂度为$O(m \log r / \log \log r + \mathsf{occ} \log r)$,空间复杂度为$O(r)$字,其中$m$为查询模式串长度,$\mathsf{occ}$为模式串出现次数,$r$为RLBWT中的游程数量。关键在于,对于长度为$m$的子串,更新操作的时间复杂度为$O((m + L_{\mathsf{max}}) \log n)$,其中$L_{\mathsf{max}}$为最大LCP值;平均运行时间为$O((m + L_{\mathsf{avg}}) \log n)$,其中$L_{\mathsf{avg}}$为平均LCP值。这种LCP有界的复杂度在LCP值通常较小的高重复字符串场景下尤为有利。我们在多种高重复数据集上通过实验验证了动态r-index的实际效率。
英文摘要:
A self-index is a compressed data structure that supports locate queries -- reporting all positions where a given pattern occurs in a string while maintaining the string in compressed form. While many self-indexes have been proposed, developing dynamically updatable ones supporting string insertions and deletions remains a challenge. The r-index (Gagie et al., JACM'20) is a representative static self-index based on the run-length Burrows-Wheeler transform (RLBWT), designed for highly repetitive strings. We present the dynamic r-index, a dynamic extension of the r-index that achieves updates in LCP-bounded time. The dynamic r-index supports count queries in $O(m \log r / \log \log r)$ time and locate queries in $O(m \log r / \log \log r + \mathsf{occ} \log r)$ time, using $O(r)$ words of space, where $m$ is the length of a query with $\mathsf{occ}$ occurrences and $r$ is the number of runs in the RLBWT. Crucially, update operations are supported in $O((m + L_{\mathsf{max}}) \log n)$ time for a substring of length $m$, where $L_{\mathsf{max}}$ is the maximum LCP value; the average running time is $O((m + L_{\mathsf{avg}}) \log n)$, where $L_{\mathsf{avg}}$ is the average LCP value. This LCP-bounded complexity is particularly advantageous for highly repetitive strings where LCP values are typically small. We experimentally demonstrate the practical efficiency of the dynamic r-index on various highly repetitive datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。