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

动态序列的压缩数据结构

Compressed Data Structures for Dynamic Sequences

J. Ian Munro, Yakov Nekrich

摘要:

我们考虑的问题存储一个动态字符串$S$在一个字母表$Σ=\{\,1,\ldots,σ\,\}$在压缩形式。我们的表示支持插入和删除的符号,并回答三个基本的查询:$\mathrm{access}(i,S)$返回$S$中的$i$ -th符号,$\mathrm{rank}_a(i,S)$计数有多少次一个符号$a$出现在$S$中的第一个$i$位置,和$\mathrm{select}_a(i,S)$发现的位置,一个符号$a$出现的$i$ -th时间。我们提出了第一个完全动态的数据结构,为任意大的字母表,实现最佳的查询时间为所有三个操作,并支持最坏情况下的时间保证更新。我们也是第一个完全动态的数据结构,只需要$nH_k+o(n\logσ)$位,其中$H_k$是$k$阶熵,$n$是字符串长度。此外,我们的表示支持提取的子串$S[i..i+\ell]$在最佳的$O(\log n/\log\log n + \ell/\log_σn)$时间。

英文摘要:

We consider the problem of storing a dynamic string $S$ over an alphabet $Σ=\{\,1,\ldots,σ\,\}$ in compressed form. Our representation supports insertions and deletions of symbols and answers three fundamental queries: $\mathrm{access}(i,S)$ returns the $i$-th symbol in $S$, $\mathrm{rank}_a(i,S)$ counts how many times a symbol $a$ occurs among the first $i$ positions in $S$, and $\mathrm{select}_a(i,S)$ finds the position where a symbol $a$ occurs for the $i$-th time. We present the first fully-dynamic data structure for arbitrarily large alphabets that achieves optimal query times for all three operations and supports updates with worst-case time guarantees. Ours is also the first fully-dynamic data structure that needs only $nH_k+o(n\logσ)$ bits, where $H_k$ is the $k$-th order entropy and $n$ is the string length. Moreover our representation supports extraction of a substring $S[i..i+\ell]$ in optimal $O(\log n/\log\log n + \ell/\log_σn)$ time.

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

↑