Efficient Fully-Compressed Sequence Representations

Barbay, Jeremy; Claude, Francisco; Gagie, Travis; Navarro, Gonzalo; Nekrich, Yakov

Abstract

We present a data structure that stores a sequence s[1.. n] over alphabet [1.. ?] in {Mathematical expression} bits, where {Mathematical expression} is the zero-order entropy of s. This structure supports the queries access, rank and select, which are fundamental building blocks for many other compressed data structures, in worst-case time {Mathematical expression} and average time {Mathematical expression}. The worst-case complexity matches the best previous results, yet these had been achieved with data structures using {Mathematical expression} bits. On highly compressible sequences the o(nlg ?) bits of the redundancy may be significant compared to the {Mathematical expression} bits that encode the data. Our representation, instead, compresses the redundancy as well. Moreover, our average-case complexity is unprecedented. Our technique is based on partitioning the alphabet into characters of similar frequency. The subsequence corresponding to each group can then be encoded using fast uncompressed representations without harming the overall compression ratios, even in the redundancy. The result also improves upon the best current compressed representations of several other data structures. For example, we achieve (i) compressed redundancy, retaining the best time complexities, for the smallest existing full-text self-indexes; (ii) compressed permutations ? with times for ?() and ?-1() improved to loglogarithmic; and (iii) the first compressed representation of dynamic collections of disjoint sets. We also point out various applications to inverted indexes, suffix arrays, binary relations, and data compressors. Our structure is practical on large alphabets. Our experiments show that, as predicted by theory, it dominates the space/time tradeoff map of all the sequence representations, both in synthetic and application scenarios. © 2012 Springer Science+Business Media New York.

Más información

Título de la Revista: ALGORITHMICA
Volumen: 69
Número: 1
Editorial: Springer
Fecha de publicación: 2012
Página de inicio: 1
Página final: 37
URL: http://www.scopus.com/inward/record.url?eid=2-s2.0-84870851325&partnerID=40&md5=81c4aedc16bd217ea36d77ec491c76b6
DOI:

10.1007/s00453-012-9726-3