arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.02292cs.DScs.DMcs.IR
收藏

双端回文树:线性时间实现

Double-Ended Palindromic Trees in Linear Time

School of Informatics, University of Edinburgh(爱丁堡大学信息学院);Graduate School of Mathematics, Nagoya University(名古屋大学研究生院数学系);China Telecom Cloud Technology Co., Ltd.(中国电信云计算科技有限公司);XVERSE Technology Inc.(幻维科技(深圳)有限公司)

Qisheng Wang, Ming Yang, Xinrui Zhu

AI总结:

本文提出双端回文树结构,通过线性时间维护表面实现回文子串的高效处理与查询。

摘要:

回文树(也称为eertree)是一种数据结构,能够访问字符串中的所有回文子串。本文提出了一种动态版本的eertree,称为双端eertree,支持对存储字符串的在线操作,包括双端队列操作、统计不同回文子串的数量以及查找最长回文前缀/后缀。我们的构造核心在于识别了一种新的子串出现类别,称为表面,这些是回文子串出现,既不是其他回文子串出现的前缀也不是后缀,这具有独立的研究价值。表面 characterize 了eertree中所有回文子串的链接结构,从而通过线性时间维护表面实现了双端eertree的线性时间实现。

英文摘要:

The palindromic tree (a.k.a. eertree) is a data structure that provides access to all palindromic substrings of a string. In this paper, we propose a dynamic version of eertree, called double-ended eertree, which supports online operations on the stored string, including double-ended queue operations, counting distinct palindromic substrings, and finding the longest palindromic prefix/suffix. At the heart of our construction, we identify a new class of substring occurrences, called surfaces, that are palindromic substring occurrences that are neither prefixes nor suffixes of any other palindromic substring occurrences, which is of independent interest. Surfaces characterize the link structure of all palindromic substrings in the eertree, thereby allowing a linear-time implementation of double-ended eertrees through a linear-time maintenance of surfaces.

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

↑