Skip to main content
. 2023 Jan 19;23(3):1164. doi: 10.3390/s23031164
Algorithm 2 Query(x)
Input.x,k
Output. true/falsev
 1: fh0(x)
 2: calculate hash values h1(f),h2(f),,hk(f)
 3: acquiring buckets B1,B2,,Bk corresponding to hash values from a hash ring
 4: if Bi(1ik) and fBi then
 5:     return true
 6: end if
 7: return false