74#ifndef __ADS_SuccinctPatriciaTrie
75 #define __ADS_SuccinctPatriciaTrie
149 [[nodiscard]] std::size_t
size(
void )
const;
152 [[nodiscard]]
bool empty(
void )
const;
155 [[nodiscard]] std::size_t
nodes(
void )
const;
180 [[nodiscard]] std::size_t
lookup( std::string_view Q )
const;
183 [[nodiscard]]
bool contains( std::string_view Q )
const;
202 [[nodiscard]] std::string
access( std::size_t i )
const;
225 [[nodiscard]] std::pair< std::size_t , std::size_t >
230 [[nodiscard]] std::size_t
bytes(
void )
const;
235 [[nodiscard]] std::size_t node( std::size_t p )
const;
238 [[nodiscard]] std::size_t place( std::size_t v )
const;
241 [[nodiscard]] std::string_view rest( std::size_t v )
const;
245 [[nodiscard]] std::size_t close( std::size_t p )
const;
250 [[nodiscard]] std::size_t start( std::size_t q )
const;
256 [[nodiscard]] std::size_t child( std::size_t c , std::size_t i )
const;
259 [[nodiscard]] std::size_t subtreeEnd( std::size_t p )
const;
262 [[nodiscard]] std::pair< std::size_t , std::size_t >
263 walk( std::string_view P )
const;
283#include "ADS/dictionary/impl/SuccinctPatriciaTrie.tpp"
A static sequence of balanced parentheses, 1 for an open one and 0 for a closed one,...
Rank and select on a static vector of bits of bits in 3.125% of bits more for the rank and less th...
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The Elias-Fano representation of a non-decreasing sequence of integers in (chapters 11,...
The search by prefix in a sorted dictionary of strings, beyond the book: the strings prefixed by ar...
a static sequence of balanced parentheses with a range min-max tree
Definition BalancedParentheses.h:124
a static vector of bits with rank and select in 3.125% of its bits more for the rank and less than 0....
Definition CompactRankSelect.h:118
std::size_t size(void) const
the number of strings
std::size_t lexicographicPosition(std::string_view Q) const
the number of strings smaller than , by the walk of lookup() up to the first mismatch and the end of ...
SuccinctPatriciaTrie(void)
the empty dictionary
SuccinctPatriciaTrie(const std::vector< std::string > &D)
the trie of the strings of
std::pair< std::size_t, std::size_t > prefixRange(std::string_view P) const
the range of the ranks of the strings prefixed by , empty at lexicographicPosition( P ) if there is ...
std::size_t lookup(std::string_view Q) const
the rank of in the dictionary, size() if it is not there
std::size_t bytes(void) const
the bytes of the structure: the parentheses with their directory and tree, the first characters,...
bool empty(void) const
whether there is no string
bool contains(std::string_view Q) const
whether is a string of the dictionary, by lookup()
std::string access(std::size_t i) const
the string of rank
std::size_t nodes(void) const
the nodes of the compacted trie,
BasicEliasFano< false > EliasFano
Elias-Fano with the inventories of built in the constructor, the fastest access() and nextGEQ().
Definition EliasFano.h:291