|
|
/* ====================================== Initialize Blook filter ====================================== */ for ( i = 0; i < m; i++ ) BloomFilterBit[i] = 0; /* ========================================== Creating the Bloom filter for n elements ========================================== */ for ( each element x in set ) do { for ( j = 0; j < k; j++ ) { rand = hashj( x ); BloomFilterBit[rand] = 1; } } |
|
Notice that:
|
|