Another virtue of wavelet forests?
A wavelet forest for a text T [1..n] over an alphabet σ takes n H_0 (T) + o (n logσ) bits of space and supports access and rank on T in O (logσ) time. Kärkkäinen and Puglisi (2011) implicitly introduced wavelet forests and showed that when T is the Burrows-Wheeler Transform (BWT) of a string S, then a wavelet forest for T occupies space bounded in terms of higher-order empirical entropies of S even when the forest is implemented with uncompressed bitvectors. In this paper we show experimentally that wavelet forests also have better access locality than wavelet trees and are thus interesting even when higher-order compression is not effective on S, or when T is not a BWT at all.
READ FULL TEXT