Lyndon Factorization Algorithms for Small Alphabets and Run-Length Encoded Strings
Keyword(s):
We present two modifications of Duval’s algorithm for computing the Lyndon factorization of a string. One of the algorithms has been designed for strings containing runs of the smallest character. It works best for small alphabets and it is able to skip a significant number of characters of the string. Moreover, it can be engineered to have linear time complexity in the worst case. When there is a run-length encoded string R of length ρ , the other algorithm computes the Lyndon factorization of R in O ( ρ ) time and in constant space. It is shown by experimental results that the new variations are faster than Duval’s original algorithm in many scenarios.
Keyword(s):
2020 ◽
Vol 37
(06)
◽
pp. 2050034
Keyword(s):
2017 ◽
Vol 27
(01n02)
◽
pp. 85-119
◽
Keyword(s):
2001 ◽
Vol 11
(06)
◽
pp. 707-735
◽
Keyword(s):
Keyword(s):
Keyword(s):