ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
advanced.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/*---------------------------- File advanced.h -----------------------------*/
3/*--------------------------------------------------------------------------*/
23/*--------------------------------------------------------------------------*/
24/*----------------------------- DEFINITIONS --------------------------------*/
25/*--------------------------------------------------------------------------*/
26
27#ifndef __ADS_advanced
28 #define __ADS_advanced
29/* self-identification: #endif constant */
30
31/*--------------------------------------------------------------------------*/
32/*------------------------------ INCLUDES ----------------------------------*/
33/*--------------------------------------------------------------------------*/
34
35#include "ADS/core.h"
36
37#include "ADS/Algebra.h"
38#include "ADS/Modification.h"
79#if defined( ADS_WITH_MPI )
81#endif
82#if defined( ADS_WITH_MPI )
84#endif
85#if defined( ADS_WITH_MPI )
87#endif
93#include "ADS/graph/GridGraph.h"
100#include "ADS/memory/Arena.h"
102#include "ADS/memory/PageHeap.h"
107#include "ADS/mfset/UnionFind.h"
116#include "ADS/parallel/Farm.h"
117#if defined( ADS_WITH_FASTFLOW )
119#endif
120#include "ADS/parallel/Mailbox.h"
121#if defined( _OPENMP )
123#endif
131#include "ADS/parallel/Scratch.h"
133#if defined( ADS_WITH_TBB )
135#endif
150#include "ADS/queue/RingDeque.h"
153#include "ADS/search/CountLess.h"
159#include "ADS/sequence/Fenwick.h"
166#include "ADS/set/CuckooFilter.h"
168#include "ADS/set/PrefixFilter.h"
169#include "ADS/set/RibbonFilter.h"
172#include "ADS/sort/LearnedSort.h"
173#include "ADS/sort/PdqSort.h"
175#include "ADS/sort/RadixSort.h"
176#include "ADS/sort/RunSorts.h"
177#include "ADS/sort/SampleSort.h"
178#include "ADS/sort/Sort.h"
179#include "ADS/sort/StringSort.h"
196#include "ADS/tree/BTreeMap.h"
198#include "ADS/tree/JoinTree.h"
199#include "ADS/tree/LinkCutTree.h"
201#include "ADS/tree/SplayTree.h"
202
203/*--------------------------------------------------------------------------*/
204
205#endif /* advanced.h included */
206
207/*--------------------------------------------------------------------------*/
208/*-------------------------- End File advanced.h ---------------------------*/
209/*--------------------------------------------------------------------------*/
The adaptive radix tree of Leis, Kemper and Neumann on strings, beyond the book: the engineered order...
The placement of the threads on the processors, beyond the book: a worker of a parallel algorithm pin...
The search of many patterns at once, beyond the book: the automaton of Aho and Corasick of a set of p...
The algebra of the aggregates, beyond the book: the concepts by which a structure that keeps a combin...
An arena of objects allocated in blocks, beyond the book: make() builds an object in the current bloc...
The assignment problem, beyond the book: given the costs of rows and columns (the workers and the ...
An ordered map on a B+-tree in main memory, beyond the book: the engineered ordered DICTIONARY of ADS...
The exponential backoff of a thread that waits for a word of memory to change, beyond the book: the -...
The binary fuse filter of Graf and Lemire, beyond the book: a static filter of a set of keys,...
The binary packing of Lemire and Boytsov, SIMD-BP128, for integers of 32 bits: the sequence is cut in...
The blocked filter of Bloom, beyond the book: the engineered filter of ADS [see BloomFilter....
The matchings of a general graph by the blossoms of Edmonds, beyond the book, whose matchings of a bi...
The cuckoo hashing with buckets of 4 places and a search in breadth of Li, Andersen,...
A priority queue for small nonnegative integer keys, beyond the book: a two-level bucket queue,...
The channels between the long-lived workers of an executor [see Executor.h], beyond the book: worker...
Rank and select on a static vector of bits of bits in 3.125% of bits more for the rank and less th...
The compressed PGM-index of Ferragina and Vinciguerra, beyond the book: the segments of the PGM-index...
A hash table that many threads read and change at once, beyond the book: the cuckoo hashing with buck...
A hash table that many threads read and grow at once, beyond the book: open addressing with linear pr...
A pool of size classes shared by threads, beyond the book: an object made by one thread may be freed ...
The union-find that many threads change at once, beyond the book [see UnionFind.h for the sequential ...
The count of the items of a short array smaller than a key, the search in a node of the B-trees in ma...
A sparse matrix in compressed sparse rows (CSR), beyond the book: the nonzeros of each row,...
The cuckoo filter of Fan, Andersen, Kaminsky and Mitzenmacher, beyond the book: a dynamic filter,...
A -ary heap of plain items, beyond the book: the heap of section 10.1 with children per node in a ve...
A hash map whose pairs lie in a dense vector, beyond the book: the pairs are the elements of a vect...
The dense matrices by rows, beyond the book: DenseMatrix keeps the entries by rows in one contiguous...
A monotone bucket queue with overflow, beyond the book: the queue of Dial on a circular window of bu...
The directly addressable codes of Brisaboa, Ladra and Navarro (DACs): a sequence of integers of vari...
The sort of the items spread over the processes of MPI, beyond the book, compiled only with ADS_WITH_...
A compressed sparse matrix that grows and shrinks by whole rows (or whole columns),...
The dynamic PGM-index of Ferragina and Vinciguerra, beyond the book: an ordered map from arithmetic k...
The engineered edit distance, longest common subsequence and approximate search, beyond the book: the...
An event count, beyond the book: the way for a thread to sleep until a condition on a lock-free struc...
The farm with feedback on the workers of an executor [see Executor.h], beyond the book: a master emit...
The engineered operations on words and on arrays of words, beyond the book [see Bitwise....
The engineered exact cover with colors, beyond the book [see DancingLinks.h for Knuth's Algorithm X w...
The executor [see Executor.h] on the threads of FastFlow, beyond the book, compiled only with ADS_WIT...
The engineered generation of permutations and combinations, beyond the book [see Generation....
The engineered hash functions of ADS, beyond the book [see HashFunctions.h for those of section 7....
The prefix aggregates of a sequence by the tree of Fenwick, beyond the book, over any algebra of Alge...
The minimal perfect hash function by fingerprinting, beyond the book: the method of Müller,...
A hash table with open addressing and control bytes, beyond the book: the engineered DICTIONARY of AD...
The range filters of Costa, Ferragina and Vinciguerra, beyond the book: GrafiteFilter,...
The step from a graph built one edge at a time to the static GRAPHs in compressed rows,...
The graph of a grid map, beyond the book [see Graph.h and Grid.h]: the cells of a map,...
The code of Huffman of a string of bytes as the fast coders do it, beyond the canonical code of chapt...
The FM-index on the wavelet tree shaped by the code of Huffman, i.e., the succinct suffix array of Mä...
A -ary heap of the integers with keys and decrease-key, beyond the book: the heap of DaryHeap [see D...
A priority queue of the integers by a key of selection that also knows the least of a second key,...
Rank and select on a static vector of bits of bits with the counts inside the lines of the bits,...
The interval tree as an augmented map, beyond the book: a multiset of closed intervals of a totally ...
The balanced binary search trees whose only balancing operation is join, beyond the book,...
The binary search trees balanced by join alone, and the augmented maps, beyond the book: JoinTree< K ...
The LA-vector of Boffa, Ferragina and Vinciguerra, beyond the book: a non-decreasing sequence of int...
The parse of LZ77 with no window in time, the algorithm of Kärkkäinen, Kempa and Puglisi (beyond the...
The learned sort, beyond the book: learnedSort() distributes the numbers of 32 or 64 bits into bucket...
The link-cut trees of Sleator and Tarjan, beyond the book: a forest of rooted trees on the nodes tha...
The PRIORITYQUEUE [see PriorityQueue.h] on a heap realized as a binary tree with pointers,...
The sort of a List [see List.h] by relinking its cells, beyond the book, stable, the engineered count...
A priority queue shared by threads that is exact, linearizable and lock-free, beyond the book: the sk...
The engineered longest common extensions of a text, beyond the book: the value of the suffixes and ...
The processes of MPI as the workers of a distributed computation, beyond the book,...
The mailbox of the processes of MPI, beyond the book, compiled only with ADS_WITH_MPI: the mailbox of...
A bounded queue of many producers and many consumers, beyond the book: the circular vector of Vyukov,...
An inbox that many producer threads fill and one consumer thread empties, lock-free,...
A queue that many producer threads fill and one consumer thread empties, lock-free and unbounded,...
The mailbox of the long-lived workers of an executor [see Executor.h], beyond the book,...
The aggregate of a structure kept by its events, beyond the book: MaterializedAggregate< G ,...
A board of the least keys of threads, beyond the book: each thread owns a slot, where publish( i ,...
Two double-ended priority queues of plain items, beyond the book: the best and the worst item by bett...
The minimal perfect hash function of ADS by pilots, the method of PTHash of Pibiri and Trani,...
The typed modifications, beyond the book: the vocabulary by which a structure tells the observers att...
The r-index on move structures, after the move-r of Bertram, Fischer and Nalbach (beyond the book): t...
The move structure of Nishimoto and Tabei: a permutation of that shifts each of intervals alike,...
A relaxed priority queue shared by threads, beyond the book: the MultiQueue of Rihani,...
The engineered search of many patterns at once, beyond the book: MultiSearcher finds all the occurren...
The engineered merge of sorted sequences, beyond the book [see LoserTree.h for the tree of losers of...
The engineered selection, beyond the book [see Selection.h for the selection of Hoare of section 17....
An array that tells its changes, beyond the book: a vector of values of T whose writes go through the...
A GRAPH that tells its changes, beyond the book: the wrapper Observable< G , O... > routes the change...
The executor [see Executor.h] on the threads of OpenMP, beyond the book, compiled only when the compi...
The unsigned key of an item whose order is that of an unsigned word, beyond the book,...
Arrays of small unsigned integers packed in words, beyond the book:
The heap of pages of size classes under PoolResource [see PoolAllocator.h] and ConcurrentPoolResource...
The PRIORITYQUEUE [see PriorityQueue.h] on a pairing heap, beyond the book: the self-adjusting heap o...
The parallel visits of a StaticGraph [see StaticGraph.h], beyond the book, on the threads of an execu...
The greedy algorithms on graphs in parallel, beyond the book, by the deterministic reservations of sp...
The parallel merge of sorted ranges, beyond the book: multiwayMerge( ex , R , out ,...
The parallel products of matrices, beyond the book: the products by a vector of the sparse matrices C...
The parallel shortest paths from a node of a GRAPH whose costs are not negative, beyond the book,...
The parallel sorts, beyond the book: sort( ex , A , less ) and stableSort( ex , A ,...
The parallel LCP array, beyond the book: lcpArray( ex , T , SA ) is the array of lcpArray( T ,...
The partitioned Elias-Fano representation of Ottaviano and Venturini: a strictly increasing sequence ...
The pattern-defeating quicksort, beyond the book and beyond the quicksorts of Ferragina's book,...
An oriented graph with pointers, beyond the book: each node is an object with its label,...
A hash table of pointers with open addressing, beyond the book: the set of the objects of a search (i...
A standard allocator over pools of size classes, beyond the book, so that the containers of the stand...
The index of the positions of objects in a vector, beyond the book: a hash table from the address of ...
The prefix filter of Even, Even and Morrison, beyond the book: an incremental filter,...
The push-relabel of Goldberg and Tarjan, the way PUSH_RELABEL of FlowNetwork::maxFlow() [see MaxFlow....
The access to the priority queues of the two concepts of section 10.1, whose definitions are in Prior...
The adversary of McIlroy against quicksort, beyond the book: a comparator of the items that does not...
The r-index of Gagie, Navarro and Prezza (beyond the book): the FM-index of a text of bytes in spac...
The compressed vector of bits of Raman, Raman and Rao (RRR), in the practical form of Claude and Nava...
A monotone priority queue of integer keys, beyond the book: the radix heap of Ahuja,...
The sorts by the digits of the keys, beyond the book (which has Counting Sort and Pigeonhole Sort,...
The engineered random numbers, beyond the book: generators of 64 bits that cost a few instructions an...
The range minimum query, beyond the book: given an array of items of an ordered universe,...
The two-dimensional range tree of Bentley as an augmented map, beyond the book: a multiset of points ...
The range variant of the asymmetric numeral systems of Duda (rANS), the entropy coder of order 0 of t...
The minimal perfect hash function of ADS by recursive splitting, the RecSplit of Esposito,...
The engineered MFSET, beyond the book [see MFSet.h for the forest of section 10.2 with the union by r...
The solutions that follow the changes of a graph, beyond the book: the observers of an Observable [se...
The standard Ribbon filter of Dillinger and Walzer, beyond the book: a static filter of a set of ke...
A double ended queue on a circular vector that grows, beyond the book: the circular vector of ArrayQu...
The compressed bitmap of Chambi, Lemire, Kaser and Godin (Roaring), beyond the book: a SET of integer...
The MFSET of section 10.2 with the undo of its merges, beyond the book [see MFSet....
The fingerprints of the rows of doubles, beyond the book: a hash of 64 bits of a dense row or of a s...
The natural merge sort that adapts to the runs of the input, beyond the book [see naturalMergeSort() ...
A bounded queue between one producer thread and one consumer thread, lock-free and wait-free,...
The in-place super scalar samplesort, beyond the book: sampleSort() splits the vector into up to 256 ...
The room of the parallel algorithms, beyond the book: the buffers of items that the parallel sorts a...
A sparse matrix in the format SELL- - of Kreutzer, Hager, Wellein, Fehske and Bishop,...
The sequence heap of Sanders, beyond the book: a priority queue of plain items for many items,...
A hash table that one thread writes and many threads read at once, beyond the book: the open addressi...
An allocator of small blocks by size classes, beyond the book: the scheme of the allocators of today ...
The aggregate of a sliding window, beyond the book: a QUEUE of values of the monoid G [see Algebra....
A vector with room for items inside itself, beyond the book: the vector that doubles of section 4....
The sort that chooses its algorithm, beyond the book: sort() and stableSort() look at what they sort ...
The assembly of a sparse matrix from its triplets, beyond the book: the entries in any order,...
The deterministic reservations of Blelloch, Fineman, Gibbons and Shun, beyond the book: speculativeFo...
The splay tree of Sleator and Tarjan, beyond the book: a binary search tree with no balance informati...
A static GRAPH for the engineered algorithms, beyond the book [see Graph.h]: the compressed sparse ro...
The engineered searches of a sorted array that does not change, beyond the book [see BinarySearch....
The priority queue of one worker that the other workers steal from, beyond the book,...
The Stream VByte code of Lemire, Kurz and Rupp for integers of 32 bits, beyond the variable-byte code...
The exact search of a pattern of bytes in a text of bytes, beyond the book: the engineered search...
The sort of strings by integer keys of their prefixes, beyond the book: prefixKeySort() reads each st...
The strongly connected components of an oriented graph by one visit in depth, beyond the book,...
The Patricia trie of a static dictionary of strings in succinct space, beyond the book: the compacted...
The suffix automaton (the directed acyclic word graph, DAWG) of a string of bytes,...
The engineered construction of the suffix array and of its LCP array, beyond the book: the ones that ...
The executor [see Executor.h] on the threads of oneTBB, beyond the book, compiled only with ADS_WITH_...
The tabled variant of the asymmetric numeral systems of Duda (tANS), the entropy coder of order 0 of ...
The pool of threads of ADS, beyond the book: the executor [see Executor.h] of the parallel algorithms...
The tiered vector of Goodrich and Kloss, beyond the book: a sequence with access by index in time,...
The MFSET of section 10.2 engineered, beyond the book [see MFSet.h]: the forest of the parents in one...
The engineered intersection of two sorted sets, beyond the book [see SortedIntersection....
The quicksort in the lanes of the vector registers, beyond the book: vectorQuickSort() sorts integers...
The wavelet matrix of Claude, Navarro and Ordóñez: a static sequence of integers of bits,...
The engineered range minimum query, beyond the book [see RangeMinimum.h for the sparse table and the ...
The deque of work stealing of Chase and Lev, beyond the book: its owner thread pushes and takes at th...
The core of ADS, included by the two sets of the library [see base.h and advanced....