Computing the Longest Previous Factor

Maxime Crochemore, Lucian Ilie*, Costas S. Iliopoulos, Marcin Kubica, Wojciech Rytter, Tomasz Waleń

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

25 Citations (Scopus)

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.

Original languageEnglish
Pages (from-to)15-26
Number of pages12
JournalEUROPEAN JOURNAL OF COMBINATORICS
Volume34
Issue number1
DOIs
Publication statusPublished - Jan 2013

Fingerprint

Dive into the research topics of 'Computing the Longest Previous Factor'. Together they form a unique fingerprint.

Cite this