Computing the LCP Array of a Labeled Graph
Jarno Alanko, Davide Cenzato, Nicola Cotumaccio, Sung-Hwan Kim,, Giovanni Manzini, Nicola Prezza

TL;DR
This paper introduces an efficient algorithm for constructing the LCP array of a directed labeled graph, improving over previous methods by reducing time complexity to logarithmic factors.
Contribution
It presents the first efficient algorithm for building the LCP array of a labeled graph, achieving better performance than natural generalizations.
Findings
Algorithm runs in O(n log σ) time
Uses O(n log σ) bits of space
Improves over previous Ω(nσ) time methods
Abstract
The LCP array is an important tool in stringology, allowing to speed up pattern matching algorithms and enabling compact representations of the suffix tree. Recently, Conte et al. [DCC 2023] and Cotumaccio et al. [SPIRE 2023] extended the definition of this array to Wheeler DFAs and, ultimately, to arbitrary labeled graphs, proving that it can be used to efficiently solve matching statistics queries on the graph's paths. In this paper, we provide the first efficient algorithm building the LCP array of a directed labeled graph with nodes and edges labeled over an alphabet of size . After arguing that the natural generalization of a compact-space LCP-construction algorithm by Beller et al. [J. Discrete Algorithms 2013] runs in time , we present a new algorithm based on dynamic range stabbing building the LCP array in time and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
