paper

Efficient Lyndon factorization of grammar compressed text

arXiv:1304.7061

Abstract

We present an algorithm for computing the Lyndon factorization of a string that is given in grammar compressed form, namely, a Straight Line Program (SLP). The algorithm runs in time and space, where is the size of the Lyndon factorization, is the size of the SLP, and is the height of the derivation tree of the SLP. Since the length of the decompressed string can be exponentially large w.r.t. and , our result is the first polynomial time solution when the string is given as SLP.

CPM 2013

Efficient Lyndon factorization of grammar compressed text · wovepaper