Skip to main content
. 2023 Jan 19;23(3):1164. doi: 10.3390/s23031164
Algorithm 1 Insert(x)
Input.x,last,Max,k
Output. true/false
  1: fh0(x)
  2: last
  3: for i0 to Max do
  4:     calculate hash values h1(f),h2(f),,hk(f)
  5:     acquiring buckets B1,B2,,Bk corresponding to hash values from a hash ring
  6:     if Bi(1ik) contains an empty entry e then
  7:         ef
  8:         return true
  9:     end if
 10:     select a fingerprint e from any bucket Bi(1ik,Bilast)
 11:     fe
 12:     lastBi
 13: end for
 14: return false