[Paper Review] Sorting suffixes of a text via its Lyndon Factorization
This paper proposes a novel method for constructing the Burrows-Wheeler Transform (BWT) and suffix array (SA) by leveraging the Lyndon factorization of a text. By exploiting the combinatorial property that local suffixes within consecutive Lyndon factors preserve their relative order when extended globally, the approach enables incremental, online, and parallelizable construction of BWT and SA, offering a versatile alternative to traditional sorting-based methods.
The process of sorting the suffixes of a text plays a fundamental role in Text Algorithms. They are used for instance in the constructions of the Burrows-Wheeler transform and the suffix array, widely used in several fields of Computer Science. For this reason, several recent researches have been devoted to finding new strategies to obtain effective methods for such a sorting. In this paper we introduce a new methodology in which an important role is played by the Lyndon factorization, so that the local suffixes inside factors detected by this factorization keep their mutual order when extended to the suffixes of the whole word. This property suggests a versatile technique that easily can be adapted to different implementative scenarios.
Motivation & Objective
- To develop a new strategy for sorting suffixes of a text using its Lyndon factorization.
- To establish a compatibility between local suffix ordering within Lyndon factors and global suffix ordering in the full text.
- To enable incremental and online construction of the Burrows-Wheeler Transform (BWT) and suffix array (SA).
- To support parallel and in-place implementations by decoupling the sorting process across Lyndon factors.
- To provide a flexible framework adaptable to external memory and lightweight computation scenarios.
Proposed method
- The text is decomposed into Lyndon factors using Duval’s linear-time algorithm.
- The key insight is that the lexicographic order of suffixes within a sequence of consecutive Lyndon factors is preserved when extended to the full text.
- The BWT is incrementally constructed by merging the BWT of each new Lyndon factor with the BWT of previously processed factors, maintaining correct relative suffix order.
- An online algorithm is enabled by processing the text from left to right, allowing the BWT to be computed as the Lyndon factorization proceeds.
- The algorithm uses dynamic data structures to support efficient rank and insertion operations, with potential for optimal space usage.
- The method supports parallelization by independently processing sequences of Lyndon factors, and can be adapted for external memory or in-place computation.
Experimental results
Research questions
- RQ1Can the lexicographic order of suffixes within Lyndon factors be preserved in the global suffix ordering of the full text?
- RQ2How can the Lyndon factorization be exploited to enable incremental and online construction of the BWT and SA?
- RQ3What is the computational complexity of constructing BWT and SA via Lyndon factorization, and how can it be optimized?
- RQ4In what ways can the independence of suffix ordering across Lyndon factors support parallel or distributed computation?
- RQ5How can the proposed method be adapted for external memory or in-place implementations?
Key findings
- The paper proves that the lexicographic order of local suffixes within any concatenation of consecutive Lyndon factors is compatible with the global suffix order in the full text.
- The BWT and SA can be incrementally constructed by processing Lyndon factors one at a time, maintaining correct relative ordering.
- The algorithm runs in O(k²M) time, where k is the number of Lyndon factors and M is the maximum factor length, though optimizations via dynamic data structures are possible.
- The method enables an online algorithm that does not require reading the entire text before starting computation.
- The approach supports parallelization, as sorting in each Lyndon factor is independent of others.
- The framework is adaptable to external memory and in-place computation, with potential for lightweight, sequential I/O-efficient implementations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.