paper

Longest Common Extensions with Recompression

arXiv:1611.05359

Abstract

Given two positions and in a string of length , a longest common extension (LCE) query asks for the length of the longest common prefix between suffixes beginning at and . A compressed LCE data structure is a data structure that stores in a compressed form while supporting fast LCE queries. In this article we show that the recompression technique is a powerful tool for compressed LCE data structures. We present a new compressed LCE data structure of size that supports LCE queries in time, where is the size of Lempel-Ziv 77 factorization without self-reference of . Given as an uncompressed form, we show how to build our data structure in time and space. Given as a grammar compressed form, i.e., an straight-line program of size n generating , we show how to build our data structure in time and space. Our algorithms are deterministic and always return correct answers.

Longest Common Extensions with Recompression · wovepaper