arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.17537cs.DScs.FL
收藏

逆Lyndon数组:定义、性质和线性时间构造

The Inverse Lyndon Array: Definition, Properties, and Linear-Time Construction

University of Salerno(萨莱诺大学)

Pietro Negri, Manuel Sica, Rocco Zaccagnino, Rosalba Zizza

AI总结:

本文研究逆Lyndon数组,定义其为逆Lyndon词的结构,通过next greater suffix数组和border修正项进行刻画,并提出线性时间构造算法,适用于一般有序字母表。

摘要:

逆Lyndon数组在每个位置存储以该位置开始的最长最大Lyndon子词的长度,并在单词组合学中起重要作用,例如在构建基本数据结构如后缀数组时。本文介绍了逆Lyndon数组,即逆Lyndon词的类比结构,即字典序大于所有其真后缀的词。与标准Lyndon词不同,逆Lyndon词可能有非平凡的边框,这引入了真正的理论困难。我们展示逆Lyndon数组可以以next greater suffix数组和border修正项来刻画,并证明该修正项与最长公共扩展(LCE)值一致。基于这一刻画,我们借鉴Ellert构造Lyndon数组所依赖的最近后缀框架,将其适应到逆设置中,获得一般有序字母表上的O(n)时间算法。最后,我们讨论了后缀比较的影响,并报告了在随机、结构化和真实数据集上的实验,显示逆构造表现出与标准构造相同的实际线性时间行为。

英文摘要:

The Lyndon array stores, at each position of a word, the length of the longest maximal Lyndon subword starting at that position, and plays an important role in combinatorics on words, for example in the construction of fundamental data structures such as the suffix array. In this paper, we introduce the Inverse Lyndon Array, the analogous structure for inverse Lyndon words, namely words that are lexicographically greater than all their proper suffixes. Unlike standard Lyndon words, inverse Lyndon words may have non-trivial borders, which introduces a genuine theoretical difficulty. We show that the inverse Lyndon array can be characterized in terms of the next greater suffix array together with a border-correction term, and prove that this correction coincides with a longest common extension (LCE) value. Building on this characterization, we adapt the nearest-suffix framework underlying Ellert's linear-time construction of the Lyndon array to the inverse setting, obtaining an O(n)-time algorithm for general ordered alphabets. Finally, we discuss implications for suffix comparison and report experiments on random, structured, and real datasets showing that the inverse construction exhibits the same practical linear-time behavior as the standard one.

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

↑