HyperLogLog
HyperLogLog is a probabilistic algorithm for estimating the number of distinct elements (cardinality) of a multiset. Several variations of the original algorithm, described by P. Flajolet et al., have been proposed.
The following implementations are provided:
Usage
Add to Cargo.toml
:
[]
= "*"
With Rust compiler version 1.45.0 or higher consider enabling the const-loop
feature for better performance, see here
for more details.
[]
= { = "*", = ["const-loop"] }
A simple example using HyperLogLog++ implementation:
use RandomState;
use ;
let mut hllp: =
new.unwrap;
hllp.insert;
hllp.insert;
assert_eq!;
Evaluation
Here you can find figures and discussion on experimental evaluation.