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

Directories

 
algorithm
 
backtrack
 
combinatorial
 
complexity
 
compression
 
concurrent
 
dictionary
 
distributed
 
external
 
geometry
 
graph
 
interop
 
intractable
 
memory
 
mfset
 
numeric
 
optimization
 
parallel
 
priority
 
queue
 
sequence
 
set
 
sort
 
stack
 
string
 
succinct
 
tree

Files

 
Abi.h
 The name of the configuration of the layouts, an inline namespace: the headers whose classes change their layout or their inline code with the flags of the compiler declare them in inline namespace ADS_ABI_NAME, opened by ADS_ABI_BEGIN and closed by ADS_ABI_END, whose name spells the options that change them.
 
ADS.h
 All the headers of ADS, i.e., those of the two sets and of their core [see core.h, base.h and advanced.h], as the module ads exports all their names, but for those of the interoperation with other libraries (ADS/interop/), which a program includes one by one next to the headers of the other library.
 
ADT.h
 The abstract data types of the book, as concepts of C++20: SEQUENCE, SET and DICTIONARY (chapter 3), STACK and QUEUE (chapter 4).
 
advanced.h
 The advanced set of ADS: the structures and the algorithms written for speed beyond the textbooks, the concurrent and the parallel ones, the executors, the distributed layer, the typed modifications and the observers, with the headers of core.h.
 
Algebra.h
 The algebra of the aggregates, beyond the book: the concepts by which a structure that keeps a combination of values (a prefix sum, the aggregate of a window, the augmentation of a tree) chooses its update rule at compile time (see The algebra of the aggregates).
 
base.h
 The base set of ADS: the structures and the algorithms that follow a textbook or an academic source (Montresor, The Art of Computer Programming, Ferragina's book and notes, Morin's Open Data Structures), written to be read and checked against the text, even when they are fast, with the headers of core.h.
 
Capabilities.h
 The capabilities of the structures, beyond the book: what an algorithm may ask of its argument to choose the faster path at compile time, in one vocabulary shared by all the areas (see Capabilities).
 
Contract.h
 The contracts of ADS: the preconditions, the postconditions and the invariants of the operations, checked at run time by four macros that mirror the contracts of C++26 (pre, post and contract_assert), so that they can be replaced by them when the compilers support them:
 
core.h
 The core of ADS, included by the two sets of the library [see base.h and advanced.h]: the infrastructure that their headers share, i.e., the contracts, the iterators, the primitives of the processor, the capabilities, the concept of the executors, the pool of the nodes and its huge pages, the random hashing, the checks of the sorts, the bits of the coders and the files of records.
 
Iterators.h
 The iterators that the containers of the library have in common, beyond the book: they give a container the interface of the standard library (begin(), end(), the categories of the iterators), so that the range-for, the algorithms of std and of std::ranges, and those of Boost visit it.
 
Modification.h
 The typed modifications, beyond the book: the vocabulary by which a structure tells the observers attached to it what changed, by small values that carry the old and the new state, and the policies that decide, in the type of the structure, who listens and at what cost (see Typed modifications).
 
Portable.h
 The primitives of the processor that the compilers spell each in their own way, in one form for all: the product of two words of 64 bits by the products of their halves of 32 bits (wideProductHalves(), the portable form of the product of Wide.h), and the swap of the bytes of a word, which is the std::byteswap() of C++23 where the library has it, else the boost::core::byteswap() of Boost.Core where Boost is found, else three exchanges by masks, of the bytes, of the pairs of bytes and of the halves.
 
Simd.h
 The vector kernels of ADS on Google Highway, with ADS_WITH_HIGHWAY: the loops over arrays that a structure of ADS hands over whole (the 1 bits of an array of words, the intersection of two sorted arrays, the hash of a long key), written once on the portable operations of Highway and compiled for every set of vector instructions that Highway knows on the machine of the compiler (SSE2 to AVX-512 on x86-64, NEON and SVE on ARM, and the others), of which Highway calls, when the program runs, the best that the processor has.
 
SimdInline.h
 The vector kernels of ADS that are inlined in the middle of a search, on Google Highway, with ADS_WITH_HIGHWAY: a comparison of the 16 control bytes of a group of a hash table with a fingerprint, the place of a byte among the 16 keys of a node of a tree, a count of the keys below a key in a block, where a call through the table of the kernels of Simd.h would cost more than the kernel.
 
Wide.h
 The arithmetic of two words that C++20 does not spell, in one form for every compiler: the product of two words of 64 bits in two, the quotient and the remainder of a number of two words by one, and the signed integers of 128 bits.