|
ADS
Algorithms and Data Structures
|
The Elias-Fano representation of a non-decreasing sequence \( x_0 \le \cdots \le x_{n-1} \) of integers in \( [ 0 , u ) \) (chapters 11, Integer Coding, and 15, Compressed Data Structures, of Ferragina's book). More...
Files | |
| file | ADS/succinct/EliasFano.h |
| The Elias-Fano representation of a non-decreasing sequence \( x_0 \le \cdots \le x_{n-1} \) of integers in \( [ 0 , u ) \) (chapters 11, Integer Coding, and 15, Compressed Data Structures, of Ferragina's book): each item is split into its \( \ell = \lceil \log_2( u / n ) \rceil \) low bits, written one after the other in \( L \), and its high bits, the bucket \( x_i \gg \ell \), written in \( H \) as the unary counts of the buckets (\( 1^c 0 \) for a bucket of \( c \) items), so that the \( i \)-th 1 of \( H \) is at the place \( ( x_i \gg \ell ) + i \). | |
Classes | |
| class | ADS::BasicEliasFano< Lazy > |
| a non-decreasing sequence of integers in the Elias-Fano representation, the inventories of select of \( H \) built in the constructor if not Lazy and at the first select of each value if Lazy [see RankSelect.h] More... | |
Typedefs | |
| using | ADS::EliasFano = BasicEliasFano< false > |
| Elias-Fano with the inventories of \( H \) built in the constructor, the fastest access() and nextGEQ(). | |
| using | ADS::LazyEliasFano = BasicEliasFano< true > |
| Elias-Fano with the inventories of \( H \) built at the first query that needs them, the fastest construction. | |
The Elias-Fano representation of a non-decreasing sequence \( x_0 \le \cdots \le x_{n-1} \) of integers in \( [ 0 , u ) \) (chapters 11, Integer Coding, and 15, Compressed Data Structures, of Ferragina's book).
The definitions, the invariants and the costs of the area are in Theory of succinct structures.
| using ADS::EliasFano = BasicEliasFano< false > |
Elias-Fano with the inventories of \( H \) built in the constructor, the fastest access() and nextGEQ().
| using ADS::LazyEliasFano = BasicEliasFano< true > |
Elias-Fano with the inventories of \( H \) built at the first query that needs them, the fastest construction.