双端回文树:线性时间实现
Double-Ended Palindromic Trees in Linear Time
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分析而来,可能存在错误,请以论文正文为准。