计算机科学 > 数据结构与算法
[提交于 2012年6月29日]
标题:Optimal Dynamic Sequence Representations
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We describe a data structure that supports access, rank and select queries, as well as symbol insertions and deletions, on a string $S[1,n]$ over alphabet $[1..\sigma]$ in time $O(\lg n/\lg\lg n)$, which is optimal even on binary sequences and in the amortized sense. Our time is worst-case for the queries and amortized for the updates. This complexity is better than the best previous ones by a $\Theta(1+\lg\sigma/\lg\lg n)$ factor. We also design a variant where times are worst-case, yet rank and updates take $O(\lg n)$ time. Our structure uses $nH_0(S)+o(n\lg\sigma) + O(\sigma\lg n)$ bits, where $H_0(S)$ is the zero-order entropy of $S$. Finally, we pursue various extensions and applications of the result.
提交历史
来自:Yakov Nekrich[v1] 2012年6月29日 星期五 10:43:34 UTC