English

Longest Common Extensions in Sublinear Space

Data Structures and Algorithms 2015-04-13 v1

Abstract

The longest common extension problem (LCE problem) is to construct a data structure for an input string TT of length nn that supports LCE(i,j)(i,j) queries. Such a query returns the length of the longest common prefix of the suffixes starting at positions ii and jj in TT. This classic problem has a well-known solution that uses O(n)O(n) space and O(1)O(1) query time. In this paper we show that for any trade-off parameter 1τn1 \leq \tau \leq n, the problem can be solved in O(nτ)O(\frac{n}{\tau}) space and O(τ)O(\tau) query time. This significantly improves the previously best known time-space trade-offs, and almost matches the best known time-space product lower bound.

Keywords

Cite

@article{arxiv.1504.02671,
  title  = {Longest Common Extensions in Sublinear Space},
  author = {Philip Bille and Inge Li Gørtz and Mathias Bæk Tejs Knudsen and Moshe Lewenstein and Hjalte Wedel Vildhøj},
  journal= {arXiv preprint arXiv:1504.02671},
  year   = {2015}
}

Comments

An extended abstract of this paper has been accepted to CPM 2015

R2 v1 2026-06-22T09:14:09.251Z