Home
Scholarly Works
Computing the Longest Previous Factor
Journal article

Computing the Longest Previous Factor

Abstract

The Longest Previous Factor array gives, for each position i in a string y, the length of the longest factor (substring) of y that occurs both at i and to the left of i in y. The Longest Previous Factor array is central in many text compression techniques as well as in the most efficient algorithms for detecting motifs and repetitions occurring in a text. Computing the Longest Previous Factor array requires usually the Suffix Array and the Longest Common Prefix array. We give the first time–space optimal algorithm that computes the Longest Previous Factor array, given the Suffix Array and the Longest Common Prefix array. We also give the first linear-time algorithm that computes the permutation that applied to the Longest Common Prefix array produces the Longest Previous Factor array.

Authors

Crochemore M; Ilie L; Iliopoulos CS; Kubica M; Rytter W; Waleń T

Journal

European Journal of Combinatorics, Vol. 34, No. 1, pp. 15–26

Publisher

Elsevier

Publication Date

January 1, 2013

DOI

10.1016/j.ejc.2012.07.011

ISSN

0195-6698

Labels

Contact the Experts team