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.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.