91#ifndef __ADS_EliasFano
92 #define __ADS_EliasFano
107#include <string_view>
161 [[nodiscard]] std::size_t
size(
void )
const;
164 [[nodiscard]]
bool empty(
void )
const;
167 [[nodiscard]] std::uint64_t
universe(
void )
const;
183 [[nodiscard]] std::uint64_t
access( std::size_t i )
const;
187 [[nodiscard]] std::uint64_t
operator[]( std::size_t i )
const;
212 [[nodiscard]] std::size_t
nextGEQ( std::uint64_t x )
const;
215 [[nodiscard]]
bool contains( std::uint64_t x )
const;
233 [[nodiscard]] std::vector< std::uint64_t >
decode(
void )
const;
239 Lazy ?
"LazyEliasFano" :
"EliasFano";
279 [[nodiscard]] std::uint64_t bucket( std::uint64_t x )
const;
282 std::uint64_t f_u = 0;
305#include "ADS/succinct/impl/EliasFano.tpp"
The vector of bits on which the succinct structures and the integer codes of ADS are built: the bits ...
The broadword tricks of Knuth (section 7.1.3 of The Art of Computer Programming), beyond the book: op...
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
Rank and select on a static vector of bits of bits with 1s (chapter 15, Compressed Data Structures...
std::uint64_t reference
an item, returned by value
Definition EliasFano.h:255
static constexpr std::string_view persistName
Definition EliasFano.h:238
void persist(A &a)
the members written to, or read from, the archive [see Persistence.h]
std::size_t nextGEQ(std::uint64_t x) const
the place of the first item , size() if there is none, i.e., the number of items
int lowWidth(void) const
the number of low bits of each item,
const BasicRankSelect< Lazy > & high(void) const
the high bits, , with their directory
std::vector< std::uint64_t > decode(void) const
the items, decoded in time
const_iterator end(void) const
the iterator past the last item
Definition EliasFano.h:268
BasicEliasFano(void)=default
the empty sequence
BasicEliasFano(const std::vector< std::uint64_t > &x, std::uint64_t u)
the sequence in the universe
std::uint64_t const_reference
an item, returned by value
Definition EliasFano.h:257
const_iterator cend(void) const
the same as end()
Definition EliasFano.h:274
std::uint64_t value_type
the type of an item
Definition EliasFano.h:249
std::uint64_t universe(void) const
the bound of the items
BasicEliasFano(const std::vector< std::uint64_t > &x)
the sequence in the universe
std::size_t size_type
the type of a size
Definition EliasFano.h:251
std::uint64_t access(std::size_t i) const
the item
std::size_t codeBits(void) const
the bits of and , without the directory of
bool empty(void) const
whether there is no item
const_iterator begin(void) const
the iterator on the first item
Definition EliasFano.h:264
std::uint64_t operator[](std::size_t i) const
the item , as access()
std::ptrdiff_t difference_type
the type of the distance of two places
Definition EliasFano.h:253
bool contains(std::uint64_t x) const
whether is an item, by nextGEQ()
const_iterator iterator
the same as const_iterator
Definition EliasFano.h:261
const BitVector & low(void) const
the low bits,
const_iterator cbegin(void) const
the same as begin()
Definition EliasFano.h:272
std::size_t size(void) const
the number of items,
std::size_t sizeInBits(void) const
all the bits, with the directory of H
SubscriptIterator< BasicEliasFano, std::uint64_t > const_iterator
the constant iterator, random access
Definition EliasFano.h:259
a static vector of bits with rank and select in time, the inventories of select built in the constru...
Definition RankSelect.h:188
a vector of bits packed in words of 64 bits
Definition BitVector.h:479
the random-access constant iterator on the items T of the owner O, read by ( *o )[ i ]
Definition BitVector.h:372
BasicEliasFano< false > EliasFano
Elias-Fano with the inventories of built in the constructor, the fastest access() and nextGEQ().
Definition EliasFano.h:291
BasicEliasFano< true > LazyEliasFano
Elias-Fano with the inventories of built at the first query that needs them, the fastest constructio...
Definition EliasFano.h:295