|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Statistics about hash table performance. More...
#include <hashDry.H>
Public Member Functions | |
| Stats () | |
| Default constructor initializing max_len to minimum. | |
Public Attributes | |
| size_t | num_busy = 0 |
| Number of occupied buckets. | |
| size_t | num_deleted = 0 |
| Number of buckets marked as deleted. | |
| size_t | num_empty = 0 |
| Number of empty buckets. | |
| DynArray< size_t > | lens |
| Distribution of probe sequence lengths. | |
| float | avg = 0 |
| Average probe sequence length. | |
| float | var = 0 |
| Variance of probe sequence lengths. | |
| size_t | max_len = 0 |
| Maximum probe sequence length. | |
Statistics about hash table performance.
Contains metrics about bucket utilization and collision distribution, useful for analyzing hash function quality and table sizing decisions.
|
inline |
Default constructor initializing max_len to minimum.
Definition at line 925 of file hashDry.H.
References OhashCommon< HashTbl, Key >::Stats::lens, Aleph::maps(), and Aleph::DynArray< T >::size().
Distribution of probe sequence lengths.
Definition at line 919 of file hashDry.H.
Referenced by OhashCommon< HashTbl, Key >::Stats::Stats(), and OhashCommon< HashTbl, Key >::print_stats().
Maximum probe sequence length.
Definition at line 922 of file hashDry.H.
Referenced by OhashCommon< HashTbl, Key >::print_stats().
Number of occupied buckets.
Definition at line 916 of file hashDry.H.
Referenced by OhashCommon< HashTbl, Key >::print_stats().
Number of buckets marked as deleted.
Definition at line 917 of file hashDry.H.
Referenced by OhashCommon< HashTbl, Key >::print_stats().
Number of empty buckets.
Definition at line 918 of file hashDry.H.
Referenced by OhashCommon< HashTbl, Key >::print_stats().