Skip to main content
. 2018 Oct 18;18(10):3520. doi: 10.3390/s18103520
Algorithm 1 Insert (x)
f=fingerprint(x);
i1=H4(x);
i2=i1H4(x);
If bucket [i1] or bucket [i2] has an empty entry then
add f to that bucket;
return Done;
i = randomly pick i1 or i2;
For n=0; n<MaxMumKicks; n++ do
randomly select an entry e from bucket [i];
swap f and fingerprint stored in entry e;
i=iH4(f);
If bucket [i] has an empty entry then
add f to bucket [i];
return done;
return False.