We introduce the problem of computing the Burrows–Wheeler Transform (BWT) using small additional space. Our in-place algorithm does not need the explicit storage for the suffix sort array and the output array, as typically required in previous work. It relies on the combinatorial properties of the BWT, and runs in O(n2) time in the comparison model using O(1) extra memory cells, apart from the array of n cells storing the n characters of the input text. We then discuss the time–space trade-off when O(k⋅σk) extra memory cells are allowed with σk distinct characters, providing an O((n2/k+n)log⁡k) -time algorithm to obtain (and invert) the BWT. For example in real systems where the alphabet size is a constant, for any arbitrarily small ϵ>0 , the BWT of a text of n bytes can be computed in O(nϵ−1log⁡n) time using just ϵn extra bytes.

Computing the Burrows-Wheeler transform in place and in small space

GROSSI, ROBERTO;
2015-01-01

Abstract

We introduce the problem of computing the Burrows–Wheeler Transform (BWT) using small additional space. Our in-place algorithm does not need the explicit storage for the suffix sort array and the output array, as typically required in previous work. It relies on the combinatorial properties of the BWT, and runs in O(n2) time in the comparison model using O(1) extra memory cells, apart from the array of n cells storing the n characters of the input text. We then discuss the time–space trade-off when O(k⋅σk) extra memory cells are allowed with σk distinct characters, providing an O((n2/k+n)log⁡k) -time algorithm to obtain (and invert) the BWT. For example in real systems where the alphabet size is a constant, for any arbitrarily small ϵ>0 , the BWT of a text of n bytes can be computed in O(nϵ−1log⁡n) time using just ϵn extra bytes.
2015
Crochemore, Maxime; Grossi, Roberto; Kärkkäinen, Juha; Landau, Gad M.
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11568/766397
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 15
  • ???jsp.display-item.citation.isi??? 9
social impact