Create a bloom filter with multiple items.
Create a bloom filter with one item.
Assume the bloom filters are compatible (same width and same hashing functions).
Assume the bloom filters are compatible (same width and same hashing functions). This is the union of the 2 bloom filters.
result of combining l
and r
Returns an instance of T
calculated by summing all instances in
iter
in one pass.
Returns an instance of T
calculated by summing all instances in
iter
in one pass. Returns None
if iter
is empty, else
Some[T]
.
instances of T
to be combined
None
if iter
is empty, else an option value containing the summed T
Returns the identity element of T
for plus.
Returns the identity element of T
for plus.
Bloom Filter - a probabilistic data structure to test presence of an element.
Operations 1) insert: hash the value k times, updating the bitfield at the index equal to each hashed value 2) query: hash the value k times. If there are k collisions, then return true; otherwise false.
http://en.wikipedia.org/wiki/Bloom_filter