arXiv · 1405.4892
Alternative Algorithms for Lyndon Factorization
Abstract
We present two variations of Duval's algorithm for computing the Lyndon factorization of a word. The first algorithm is designed for the case of small alphabets and is able to skip a significant portion of the characters of the string, for strings containing runs of the smallest character in the alphabet. Experimental results show that it is faster than Duval's original algorithm, more than ten times in the case of long DNA strings. The second algorithm computes, given a run-length encoded string $R$ of length $ρ$, the Lyndon factorization of $R$ in $O(ρ)$ time and constant space.
Explore related subjects
Keep this discovery
Sukhpal Singh Ghuman, Emanuele Giaquinta, Jorma Tarhio. 2014-07-11. Alternative Algorithms for Lyndon Factorization. https://arxiv.org/abs/1405.4892
Cite the original work for its findings. Save a collection to share your selection of sources.