AlgorithmsStringsEdit on GitHubEdit history
Kasai's LCP Algorithm
2001
An algorithm that computes, from a string and its suffix array, the array of longest-common-prefix (LCP) lengths between adjacent suffixes in linear time. It scans suffixes in text order and uses the fact that the LCP value decreases by at most one from the previous suffix.
Origin
Toru Kasai, Gunho Lee, Hiroki Arimura, Setsuo Arikawa, Kunsoo Park (2001). Linear-Time Longest-Common-Prefix Computation in Suffix Arrays and Its Applications. CPM 2001 (LNCS 2089).doi:10.1007/3-540-48194-X_17 — checked against Crossref, 2026-11-08
Lineage
Algorithms 4 · Relations 3
Parent algorithms
Where it came from
Suffix Array1990
Author statementAs its title says, performs longest-common-prefix computation for suffix arrays in linear time. — doi:10.1007/3-540-48194-X_17
Notable implementations
Paths checked against the GitHub default branch
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…