We present an extension of the in-place BWT algorithm of Crochemore et al. [8] that enables the construction of the Lyndon array using O(1) extra space. Our approach incrementally maintains the lexicographic ranks of the suffixes during the right-to-left BWT construction and then derives the Lyndon array through a simple next-smaller-value procedure. Although not intended for practical use due to its quadratic running time, the method is conceptually simple and works for unbounded alphabets.
翻译:本文扩展了Crochemore等人[8]的原地BWT算法,实现了仅使用O(1)额外空间的Lyndon数组构造。该方法在从右向左构建BWT的过程中增量维护后缀的字典序秩,随后通过简单的次小值过程推导出Lyndon数组。虽然因其二次时间复杂度而不适用于实际场景,但该方法概念简洁且适用于无界字母表。