Skip to main content
. 2016 Nov 25;16(12):1993. doi: 10.3390/s16121993
Algorithm 7 DistanceCompare.
Input:
  Xe: the ciphertext of a querier’s location X;
  Ye: the ciphertext of a publisher’s location Y;
  τe: the ciphered compare parameter τ;
Output:
  true or false;
 1: Execute dise=DistanceComputeXe,Ye;
 2: if diseτe0 then return true;
 3: end if
  return false;