arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.26190cs.DScs.CL
收藏

Flashback:字符串的可逆双侧运行剥离分解

Flashback: A Reversible Bilateral Run-Peeling Decomposition of Strings

Faculty of Engineering, Bar-Ilan University(巴伊兰大学工程学院);Bar-Ilan Institute for Nanotechnology and Advanced Materials, Bar-Ilan University(巴伊兰大学纳米技术与先进材料研究所);Department of Pathology, Yale School of Medicine(耶鲁医学院病理学系)

Thomas Konstantinovsky, Gur Yaari

AI总结:

本文提出Flashback算法,通过可逆的双侧运行剥离分解字符串,实现O(n)时间与空间复杂度的分解与重建,并证明其运行配对定理,揭示了字符串运行长度编码的对称性与双侧剥离结构的特性。

摘要:

我们介绍了Flashback,一种可逆的字符串分解方法,通过反复剥离输入的最前和最后的最大字符运行,将每对记录为一个双侧标记。分解与重建均在O(n)时间内完成。我们的核心结果是运行配对定理:Flashback等同于将字符串的第一个运行与最后一个配对,第二个与倒数第二个配对,依此类推。这给出了具有r个最大运行的字符串的精确标记数为1+[r/2],并匹配了任何可行的双侧运行剥离方案的下限。从运行配对定理得出的主要结构性质作为推论:不可约剥离内核最多使用两个符号;回文是那些运行长度编码对称且具有奇数个运行的字符串;分解图像允许显式的有限状态字符刻画;改变一个运行长度会重写恰好一个内容标记。

英文摘要:

We introduce Flashback, a reversible string decomposition that repeatedly peels the maximal leading and trailing character runs from a sentinel-wrapped input, recording each pair as one bilateral token. Decomposition and reconstruction both run in O(n) time and space. Our central result is a run-pairing theorem: Flashback is equivalent to pairing the first run of the string with the last, the second with the second-to-last, and so on. This gives an exact token count of 1+[r/2] for a string with r maximal runs, and matches a lower bound that holds for any admissible bilateral run-peeling scheme. From the run-pairing theorem the main structural properties follow as corollaries: the irreducible peeling kernel uses at most two symbols; palindromes are precisely the strings whose run-length encoding is symmetric with an odd number of runs; the image of the decomposition admits an explicit finite-state characterisation; and changing one run length rewrites exactly one content token.

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

↑