English

Alternative Algorithms for Lyndon Factorization

Data Structures and Algorithms 2014-07-14 v2

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 RR of length ρ\rho, the Lyndon factorization of RR in O(ρ)O(\rho) time and constant space.

Keywords

Cite

@article{arxiv.1405.4892,
  title  = {Alternative Algorithms for Lyndon Factorization},
  author = {Sukhpal Singh Ghuman and Emanuele Giaquinta and Jorma Tarhio},
  journal= {arXiv preprint arXiv:1405.4892},
  year   = {2014}
}
R2 v1 2026-06-22T04:18:23.766Z