|
ADS
Algorithms and Data Structures
|
Files | |
| ArithmeticCoding.h | |
| The arithmetic code (chapter 12, Statistical Coding, of Ferragina's book), exact and in integers. | |
| BinaryPacking.h | |
| The binary packing of Lemire and Boytsov, SIMD-BP128, for integers of 32 bits: the sequence is cut into blocks of 128 integers, and a block is written with \( b \) bits per integer, \( b \) the bits of its largest one, so that it takes \( 16 b \) bytes; the widths of 16 blocks are 16 bytes before them. | |
| BurrowsWheeler.h | |
| The transform of Burrows and Wheeler and the compressor built on it (chapter 14, Block-Sorting Compression, of Ferragina's book, beyond the book of Montresor). | |
| CanonicalHuffman.h | |
| The canonical code of Huffman (chapter 12, Statistical Coding, of Ferragina's book): the lengths \( L( \sigma ) \) of the codes of Huffman [see Huffman.h, whose huffman() gives them], and a new code with the same lengths, hence as short, chosen so that neither the encoder nor the decoder needs the tree. | |
| DirectAccessCodes.h | |
| The directly addressable codes of Brisaboa, Ladra and Navarro (DACs): a sequence \( x_0 , \ldots , x_{n-1} \) of integers of variable length in little more than the bits of their binary codes, with access to any item in time proportional to its length rather than to its place, which the codes of the integers [see IntegerCodes.h] read one after the other do not give. | |
| Entropy.h | |
| The empirical entropies against which the compressors of this folder are measured. | |
| FMIndex.h | |
| The FM-index of Ferragina and Manzini (chapter 14, Block-Sorting Compression, of Ferragina's book, beyond the book of Montresor): the transform of Burrows and Wheeler of \( s \) [see BurrowsWheeler.h] as an index of its substrings, which replaces the suffix array and the text. | |
| HuffmanCoder.h | |
| The code of Huffman of a string of bytes as the fast coders do it, beyond the canonical code of chapter 12, Statistical Coding, of Ferragina's book [see CanonicalHuffman.h], which decodes a bit at a time on a map of the symbols: | |
| HuffmanFMIndex.h | |
| The FM-index on the wavelet tree shaped by the code of Huffman, i.e., the succinct suffix array of Mäkinen and Navarro (beyond the book): the transform \( L \) of Burrows and Wheeler of a text \( s \) of \( n \) bytes as a HuffmanWaveletTree [see HuffmanWaveletTree.h], in \( n ( H_0 + 1 ) ( 1 + o( 1 ) ) \) bits, with the same operations as the FM-index of chapter 14, Block-Sorting Compression, of Ferragina's book [see FMIndex.h], which keeps \( L \) as it is with counts every \( b \) places, \( 8 n + 32 \sigma n / b \) bits. | |
| IntegerCodes.h | |
| The codes of the integers of chapter 11, Integer Coding, of Ferragina's book: self-delimiting binary codewords for a sequence of positive integers, short for the small ones, written one after the other on a stream of bits [see BitStream.h] or of bytes. | |
| LempelZiv.h | |
| The compressors of Lempel and Ziv (chapter 13, Dictionary-Based Compressors, of Ferragina's book, beyond the book of Montresor), whose dictionary is the text itself: they replace a string seen before with a reference to it, and need no model of the source. | |
| LZ77Linear.h | |
| The parse of LZ77 with no window in \( O( n ) \) time, the algorithm of Kärkkäinen, Kempa and Puglisi (beyond the book), against the parse of chapter 13, Dictionary-Based Compressors, of Ferragina's book [see LempelZiv.h], which searches the window for each phrase, in \( O( n w ) \) time. | |
| MoveRIndex.h | |
| The r-index on move structures, after the move-r of Bertram, Fischer and Nalbach (beyond the book): the operations of the r-index [see RIndex.h] with each step in \( O( 1 ) \) time instead of a predecessor search, from two move structures of Nishimoto and Tabei [see MoveStructure.h], at the price of a few more words per run of the transform \( L \) of Burrows and Wheeler of the text. | |
| PackedBits.h | |
| The bits of the compressors of this folder, packed in bytes, since their input and their output are streams of bytes: a PackedBitWriter appends bits, the first one in the most significant bit of the first byte, and a PackedBitReader reads them back in the same order. | |
| PPM.h | |
| Prediction by partial matching (chapter 12, Statistical Coding, of Ferragina's book), the model of contexts of Cleary and Witten in the version C of Moffat, on the arithmetic coder [see ArithmeticCoding.h]. | |
| Rans.h | |
| The range variant of the asymmetric numeral systems of Duda (rANS), the entropy coder of order 0 of the fast compressors, beyond the arithmetic code of chapter 12, Statistical Coding, of Ferragina's book [see ArithmeticCoding.h]: it reaches the size of the arithmetic code, within a fraction of a percent of \( n H_0 \) [see Entropy.h], at the speed of a table of Huffman. | |
| RIndex.h | |
| The r-index of Gagie, Navarro and Prezza (beyond the book): the FM-index of a text \( s \) of \( n \) bytes in space proportional to the number \( r \) of the runs of its transform \( L \) of Burrows and Wheeler, rather than to \( n \) [see FMIndex.h, HuffmanFMIndex.h], so that a repetitive text (the versions of a document, the genomes of a species), where \( r \) is far smaller than \( n \), takes far less; count( P ) takes \( O( p ) \) steps of rank on the runs, and locate( P ) \( O( p + \mathit{occ} ) \) more of predecessor searches. | |
| StreamVByte.h | |
| The Stream VByte code of Lemire, Kurz and Rupp for integers of 32 bits, beyond the variable-byte code of chapter 11, Integer Coding, of Ferragina's book [see IntegerCodes.h]: each integer takes 1 to 4 bytes, as many as its significant bytes, but the lengths are not in the bytes themselves (a flag bit per byte, which the decoder of decodeVByte() tests one byte at a time); they are apart, 2 bits per integer, 4 integers to a control byte, before all the bytes of the data. | |
| Tans.h | |
| The tabled variant of the asymmetric numeral systems of Duda (tANS), the entropy coder of order 0 of Zstandard (RFC 8878), beside the range variant [see Rans.h]: the transitions of the state are read from tables, so that a symbol costs a lookup, a shift and an addition, and no multiplication. | |