File TableSize.h
↰ Parent directory (ADS/dictionary)
The sizes of the hash tables that restructure themselves (section 7.4): a size that is a power of two doubles or halves, any other one goes to the first prime not smaller than its double or its half, so that the inspections of an OpenHashTable that need a prime size, or a size coprime with their step, keep working.
Definition (ADS/dictionary/TableSize.h)
Detailed Description
The contracts [see File Contract.h]: resized() starts from a size not below the initial size m0 > 0, never goes below it, and keeps a power of two a power of two. The functions are defined in TableSize.tpp.
Montresor, Algoritmi e Strutture Dati, 2025, section 7.4, https://algoritmicamente.it/materiali/libro/capitoli/cap07.pdf
- Donato Meoli
Dipartimento di Informatica Universita’ di Pisa
by Donato Meoli
Includes
ADS/Contract.h(File Contract.h)ADS/dictionary/impl/TableSize.tppalgorithm(File AkraBazzi.h)cstddef