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

最优压缩空间下的动态后缀数组

Dynamic Suffix Array in Optimal Compressed Space

Takaaki Nishimoto, Yasuo Tabei

AI总结:

本文提出首个支持后缀数组查询与更新的动态压缩数据结构,在对数多项式时间内运行,并达到δ-最优空间,填补了静态结构的空白。

摘要:

大数据涵盖广泛的数据集,其规模迅速扩张,其中相当一部分是文本数据,包括字符串和文本。简单的压缩方法和标准数据结构在处理这些数据集时被证明是不足的,因为它们需要解压才能使用,或者消耗大量的内存资源。因此,这一动机推动了压缩数据结构的发展,这些结构支持对给定字符串的各种查询,通常在对数多项式时间内运行,并利用与字符串长度成比例的压缩空间。值得注意的是,后缀数组(SA)查询是实现后缀树的关键组成部分,而后缀树具有广泛的应用。\n 已有大量研究致力于支持SA查询的(尤其是静态的)压缩数据结构。大多数研究的共同发现是现有压缩数据结构的空间效率不够最优。Kociumaka、Navarro和Prezza [IEEE Trans. Inf. Theory 2023] 做出了重要贡献,引入了渐近最小的空间需求,即 $O\left(δ\log\frac{n\logσ}{δ\log n} \log n \right)$ 比特($δ$-最优空间),足以表示任意长度为 $n$、字母表大小为 $σ$、子串复杂度为 $δ$(作为重复性的度量)的字符串。最近,Kempa和Kociumaka [FOCS 2023] 提出了 $δ$-SA,一种在 $δ$-最优空间中支持SA查询的压缩数据结构。然而,迄今引入的数据结构都是静态的。\n 我们提出了第一个动态压缩数据结构,支持在对数多项式时间和 $δ$-最优空间中进行SA查询和更新。更精确地说,它可以在 $O(\log^7 n)$ 时间内回答SA查询,并在期望 $O(\log^8 n)$ 时间内执行更新,使用期望的 $δ$-最优空间。

英文摘要:

Big data, encompassing extensive datasets, has seen rapid expansion, notably with a considerable portion being textual data, including strings and texts. Simple compression methods and standard data structures prove inadequate for processing these datasets, as they require decompression for usage or consume extensive memory resources. Consequently, this motivation has led to the development of compressed data structures that support various queries for a given string, typically operating in polylogarithmic time and utilizing compressed space proportional to the string's length. Notably, the suffix array (SA) query is a critical component in implementing a suffix tree, which has a broad spectrum of applications. A line of research has been conducted on (especially, static) compressed data structures that support the SA query. A common finding from most of the studies is the suboptimal space efficiency of existing compressed data structures. Kociumaka, Navarro, and Prezza [IEEE Trans. Inf. Theory 2023] have made a significant contribution by introducing an asymptotically minimal space requirement, $O\left(δ\log\frac{n\logσ}{δ\log n} \log n \right)$ bits ($δ$-optimal space), sufficient to represent any string of length $n$, with an alphabet size of $σ$, and substring complexity $δ$, serving as a measure of repetitiveness. More recently, Kempa and Kociumaka [FOCS 2023] presented $δ$-SA, a compressed data structure supporting SA queries in $δ$-optimal space. However, the data structures introduced thus far are static. We present the first dynamic compressed data structure that supports the SA query and update in polylogarithmic time and $δ$-optimal space. More precisely, it can answer SA queries and perform updates in $O(\log^7 n)$ and expected $O(\log^8 n)$ time, respectively, using an expected $δ$-optimal space.

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

↑