Italiano (Italian) English (Inglese)
venerdì, 24 maggio 2024


Dettagli Pubblicazione
Autori:Giovanni Manzini
Area Scientifica:Text Compression and Indexing
Titolo:Two space saving tricks for linear time LCP computation
Apparso su:TR-INF-2004-02-03-UNIPMN
Editore:Computer Science Department, UPO
Tipo Pubblicazione:Technical Report
Sommario:In this paper we consider the linear time algorithm of Kasai et al. for the computation of the LCP array given the text and the suffix array. We show that this algorithm can be implemented without any auxiliary array in addition to the ones required for the input (the text and the suffix array) and the output (the LCP array). Thus, for a text of length n, we reduce the space occupancy of this algorithm from 13n bytes to 9n bytes. We also consider the problem of computing the LCP array ``overwriting' the suffix array. For this problem we propose an algorithm whose space occupancy depends on the regularity of the text. Experiments show that for linguistic texts our algorithm uses roughly 7n bytes. Our algorithm makes use of the Burrows-Wheeler Transform even if it does not represent any data in compressed form. To our knowledge this is the first application of the Burrows-Wheeler Transform outside the domain of data compression.