English

Efficient Lyndon factorization of grammar compressed text

Data Structures and Algorithms 2013-04-29 v1

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 O(n4+mn3h)O(n^4 + mn^3h) time and O(n2)O(n^2) space, where mm is the size of the Lyndon factorization, nn is the size of the SLP, and hh is the height of the derivation tree of the SLP. Since the length of the decompressed string can be exponentially large w.r.t. n,mn, m and hh, our result is the first polynomial time solution when the string is given as SLP.

Keywords

Cite

@article{arxiv.1304.7061,
  title  = {Efficient Lyndon factorization of grammar compressed text},
  author = {Tomohiro I and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
  journal= {arXiv preprint arXiv:1304.7061},
  year   = {2013}
}

Comments

CPM 2013

R2 v1 2026-06-22T00:06:42.795Z