ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
succinct Directory Reference

Files

 
BalancedParentheses.h
 A static sequence \( B \) of balanced parentheses, 1 for an open one and 0 for a closed one, with the matching of Munro and Raman by the range min-max tree of Navarro and Sadakane: the base of the trees by parentheses [see BPTree.h], which chapter 15, Compressed Data Structures, of Ferragina's book counts among the codes of \( 2 n \) bits of a tree, and which, unlike the codes by levels, also give the size of a subtree and the depth of a node.
 
BitStream.h
 The streams of bits on which the integer codes are written and read [see IntegerCodes.h]: BitWriter appends bits to a BitVector [see BitVector.h] and BitReader reads them back from a place that moves forward, both in \( O( 1 ) \) time per field of up to 64 bits.
 
BitVector.h
 The vector of bits on which the succinct structures and the integer codes of ADS are built: the bits are packed in words of 64 bits, the bit \( i \) being the bit \( i \bmod 64 \) (from the least significant one) of the word \( \lfloor i / 64 \rfloor \), so that a field of up to 64 bits is read or written with two shifts at most.
 
BPTree.h
 The ordered tree of any degree in \( 2 n \) bits by its balanced parentheses: a visit in depth writes an open parenthesis when it enters a node and a closed one when it leaves it, so that a node is the pair of its parentheses and its subtree is what they enclose (the code with which chapter 15, Compressed Data Structures, of Ferragina's book counts the trees of \( n \) nodes).
 
BVGraph.h
 The compression of the adjacency lists of Boldi and Vigna (chapter 15, Compressed Data Structures, of Ferragina's book), designed for the Web graphs, whose nodes are the pages sorted by URL: locality (most links stay in the host, so that the successors of \( x \) are close to \( x \) and to each other) and similarity (the pages of a host link to the same pages).
 
CompactRankSelect.h
 Rank and select on a static vector of bits \( B \) of \( m \) bits in 3.125% of \( m \) bits more for the rank and less than 0.8% for the select of each value, the compact counterpart of RankSelect [see RankSelect.h], which spends about 50% for the fastest queries: the flat directory of Kurpicz, after the poppy of Zhou, Andersen and Kaminsky.
 
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 \).
 
EliasFanoGraph.h
 A static directed graph whose adjacency lists are coded by Elias-Fano [see EliasFano.h] (chapter 15, Compressed Data Structures, of Ferragina's book), the representation of the adjacency lists of large graphs in Facebook's Unicorn and in the quasi-succinct indices of Vigna.
 
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.
 
InterleavedRankSelect.h
 Rank and select on a static vector of bits \( B \) of \( m \) bits with the counts inside the lines of the bits, the layout of SPIDER of Laws, Bliven, Conklin, Laalai, McCauley and Sturdevant: a line of the cache of 512 bits holds 496 bits of \( B \) and, in its first 16 bits, the 1s before it since its superblock of 128 lines (63488 bits, so that the count fits), and a superblock keeps the 1s before it in 64 bits apart.
 
JacobsonTree.h
 The binary tree of Jacobson in \( 2 n + 1 \) bits (chapter 15, Compressed Data Structures, of Ferragina's book): the tree of \( n \) nodes is completed with a leaf in place of each missing child, its \( 2 n + 1 \) nodes are visited by levels, and the code \( B \) gets a 1 for a node of the tree and a 0 for a leaf added.
 
K2Tree.h
 The \( k^2 \)-tree of Brisaboa, Ladra and Navarro (chapter 15, Compressed Data Structures, of Ferragina's book): the adjacency matrix of a graph of \( n \) nodes, padded to the side \( N = k^h \ge n \), is split into \( k^2 \) submatrices of side \( N / k \), each one a child of the root marked 1 if it has an edge and 0 otherwise, and each child marked 1 is split again, down to the cells.
 
LAVector.h
 The LA-vector of Boffa, Ferragina and Vinciguerra, beyond the book: a non-decreasing sequence \( x_0 \le \cdots \le x_{n-1} \) of integers of 64 bits, i.e., the places of the 1s of a vector of bits, compressed by the regularities that a model of lines finds in it, with access(), the select of the vector of bits, and nextGEQ(), its rank (see Sequences compressed by a model of lines).
 
LoudsTree.h
 The ordered tree of any degree in \( 2 n + 1 \) bits by LOUDS, the level-order unary degree sequence of Jacobson (chapter 15, Compressed Data Structures, of Ferragina's book): a dummy root of degree 1 is put above the root, the nodes are visited by levels, and the degree \( d \) of each one is written in unary as \( 0^d 1 \), so that the code \( B \) has \( n \) 0s, one per node (each one is the child of somebody), and \( n + 1 \) 1s, one per node and the dummy root, i.e., \( 2 n + 1 \) bits.
 
MoveStructure.h
 The move structure of Nishimoto and Tabei: a permutation \( \pi \) of \( [ 0 , n ) \) that shifts each of \( m \) intervals alike, the interval \( [ p_i , p_{i+1} ) \) onto \( [ q_i , q_i + p_{i+1} - p_i ) \) (the LF-mapping of a transform of Burrows and Wheeler on its runs, the function \( \phi \) of the r-index on the places of the starts of the runs [see RIndex.h]), with \( \pi( x ) \) and the interval of \( \pi( x ) \) in \( O( 1 ) \) time from \( x \) and its interval, in \( O( m ) \) words rather than \( n \).
 
PackedArray.h
 Arrays of small unsigned integers packed in words, beyond the book:
 
PartitionedEliasFano.h
 The partitioned Elias-Fano representation of Ottaviano and Venturini: a strictly increasing sequence \( x_0 < \cdots < x_{n-1} \) of integers of \( [ 0 , u ) \) cut into blocks of \( B = 128 \) items, each one coded in the cheapest of three ways relative to the end of the block before, so that a sequence with clusters (the lists of an inverted index) takes far fewer bits than the \( 2 + \lceil \log_2( u / n ) \rceil \) per item of Elias-Fano [see EliasFano.h], which ignores its regularities, with the same access() and nextGEQ().
 
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).
 
RRRBitVector.h
 The compressed vector of bits of Raman, Raman and Rao (RRR), in the practical form of Claude and Navarro: a static vector \( B \) of \( m \) bits with \( n \) 1s in at most \( m H_0( B ) + 0.175 m \) bits, i.e., below \( m \) when the 1s (or the 0s) are rare, with access, rank and select.
 
WaveletMatrix.h
 The wavelet matrix of Claude, Navarro and Ordóñez: a static sequence \( S[ 0 .. n - 1 ] \) of integers of \( w \) bits, i.e., on the alphabet \( [ 0 , 2^w ) \), in \( n w \) bits plus the directories of rank and select [see RankSelect.h], with access, rank and select of any symbol in \( O( w ) \) time, and the queries on a range of places that a sequence of integers needs (the \( k \)-th smallest item of a range, the items below a value), also in \( O( w ) \) time.