ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
HuffmanWaveletTree.h

The wavelet tree shaped by the code of Huffman of Mäkinen and Navarro. More...

Files

file  ADS/succinct/HuffmanWaveletTree.h
 The wavelet tree shaped by the code of Huffman of Mäkinen and Navarro: a sequence \( x_0 , \ldots , x_{n-1} \) of symbols of \( [ 0 , \sigma ) \) in \( n ( H_0 + 1 ) \) bits and a little more, with access, rank and select of any symbol in time proportional to the length of its code, \( H_0 + 1 \) steps on average, against the \( \lceil \log_2 \sigma \rceil \) levels of the balanced tree and of the wavelet matrix [see WaveletMatrix.h], which take \( n \lceil \log_2 \sigma \rceil \) bits.

Classes

class  ADS::HuffmanWaveletTree< RS >
 a static sequence of symbols in about \( H_0 + 1 \) bits each, with access, rank and select in time proportional to the length of a code; RS is the rank and select of its bits, RankSelect or CompactRankSelect More...

Detailed description

The wavelet tree shaped by the code of Huffman of Mäkinen and Navarro.

The definitions, the invariants and the costs of the area are in Theory of succinct structures.