Conference
Computing Longest Previous Factor in linear time and applications
Abstract
We give two optimal linear-time algorithms for computing the Longest Previous Factor (LPF) array corresponding to a string w. For any position i in w, LPF[i] gives the length of the longest factor of w starting at position i that occurs previously in w. Several properties and applications of LPF are investigated. They include computing the Lempel–Ziv factorization of a string and detecting all repetitions (runs) in a string in linear time …
Authors
Crochemore M; Ilie L
Volume
106
Pagination
pp. 75-80
Publisher
Elsevier
Publication Date
April 2008
DOI
10.1016/j.ipl.2007.10.006
Conference proceedings
Information Processing Letters
Issue
2
ISSN
0020-0190