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

基于AVL树和AVL文法的完全持久动态LCE

Fully Persistent Dynamic LCE via AVL Trees and AVL Grammars

Graduate School of IST, Hokkaido University(北海道大学信息理工学院研究生院);Department of Informatics, Kyushu University(九州大学信息系)

Taiki Kaneda, Hiroki Arimura, Shunsuke Inenaga

AI总结:

提出FeAVL结构,通过AVL树的路径复制实现完全持久动态字符串的相等性和最长公共扩展查询,支持最坏情况O(log n)时间操作,并给出基于AVL文法的压缩实例化。

摘要:

我们研究具有相等性和最长公共扩展(LCE)查询的完全持久动态字符串。对于基于伸展树的FeST结构,直接完全持久化存在问题,因为相同的不平衡旧版本可以无限重用,且通常的平摊分析不再适用。我们提出一种称为FeAVL的完全持久动态LCE结构,基于AVL树的路径复制。对于涉及总长度为n的字符串的操作,它支持最坏情况O(log n)时间的分割、连接和单字符更新,最坏情况O(log n)时间(高概率)的相等性查询,以及最坏情况O(log n + log^2 ℓ)时间(高概率)的LCE查询,其中ℓ是答案;每次更新仅创建O(log n)个新的永久节点。我们还通过AVL文法给出文法压缩实例化:从大小为g0的初始文法开始,经过U次更新后,永久文法节点的总数为O(g0 + I + U log n_max),其中I是插入的新字符数,n_max是更新序列中出现的最大字符串长度。

英文摘要:

We study fully persistent dynamic strings with equality and longest common extension (LCE) queries. Straightforward full persistence is problematic for the splay-based FeST structure, since the same unbalanced past version can be reused indefinitely and the usual amortized analysis no longer applies. We give a fully persistent dynamic LCE structure, called FeAVL, based on path copying over AVL trees. For an operation involving string(s) of total length $n$, it supports split, concatenate, and single-character updates in worst-case $O(\log n)$ time, equality in worst-case $O(\log n)$ time w.h.p., and LCE in worst-case $O(\log n+\log^2\ell)$ time w.h.p., where $\ell$ is the answer; each update creates only $O(\log n)$ new permanent nodes. We also give a grammar-compressed instantiation via AVL grammars: starting from an initial grammar of size $g_0$, after $U$ updates, the total number of permanent grammar nodes is $O(g_0+I+U\log n_{\max})$, where $I$ is the number of inserted fresh characters and $n_{\max}$ is the maximum string length appearing during the update sequence.

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

↑