A range LCP query rlcp(α,β) on a text T[1 .. n] asks to return the length of the longest common prefix of any two suffixes of T with starting positions in a range [α,β]. In this paper we describe a data structure that uses O(n) space and supports range LCP queries in time O(log^ε n) for any constant ε > 0. Our result is the fastest currently known linear-space solution for this problem.
@InProceedings{nekirch_et_al:OASIcs.Grossi.16, author = {Nekirch, Yakov and Thankachan, Sharma V.}, title = {{Faster Range LCP Queries in Linear Space}}, booktitle = {From Strings to Graphs, and Back Again: A Festschrift for Roberto Grossi's 60th Birthday}, pages = {16:1--16:6}, series = {Open Access Series in Informatics (OASIcs)}, ISBN = {978-3-95977-391-1}, ISSN = {2190-6807}, year = {2025}, volume = {132}, editor = {Conte, Alessio and Marino, Andrea and Rosone, Giovanna and Vitter, Jeffrey Scott}, publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik}, address = {Dagstuhl, Germany}, URL = {https://drops.dagstuhl.de/entities/document/10.4230/OASIcs.Grossi.16}, URN = {urn:nbn:de:0030-drops-238158}, doi = {10.4230/OASIcs.Grossi.16}, annote = {Keywords: Data Structures, String Algorithms, Longest Common Prefix} }
Feedback for Dagstuhl Publishing