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

Rank and select on a static vector of bits \( B \) of \( m \) bits with \( n \) 1s (chapter 15, Compressed Data Structures, of Ferragina's book). More...

Files

file  ADS/succinct/RankSelect.h
 Rank and select on a static vector of bits \( B \) of \( m \) bits with \( n \) 1s (chapter 15, Compressed Data Structures, of Ferragina's book): \( \mathrm{rank}_b( i ) \), the number of the bits \( b \) in \( B[ 0 , i ) \), and \( \mathrm{select}_b( k ) \), the place of the \( k \)-th bit \( b \), the primitives on which every succinct structure of ADS is built (Elias-Fano, the trees by levels and by parentheses, the graphs).

Classes

struct  ADS::RankSelectOptions
 the values whose select a directory answers: a structure that needs only rank, or one of the selects, spares the inventories of the others More...
class  ADS::BasicRankSelect< Lazy >
 a static vector of bits with rank and select in \( O( 1 ) \) time, the inventories of select built in the constructor if not Lazy, and at the first select of each value if Lazy More...

Typedefs

using ADS::RankSelect = BasicRankSelect< false >
 the directory with its inventories of select built in the constructor, the fastest select
using ADS::LazyRankSelect = BasicRankSelect< true >
 the directory with its inventories of select built at the first select of each value, the fastest construction (for a directory that may never select, or that selects only some values)

Detailed description

Rank and select on a static vector of bits \( B \) of \( m \) bits with \( n \) 1s (chapter 15, Compressed Data Structures, of Ferragina's book).

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

Typedef documentation

◆ LazyRankSelect

the directory with its inventories of select built at the first select of each value, the fastest construction (for a directory that may never select, or that selects only some values)

◆ RankSelect

using ADS::RankSelect = BasicRankSelect< false >

the directory with its inventories of select built in the constructor, the fastest select