Research Article

Protecting Location Privacy for Outsourced Spatial Data in Cloud Storage

Algorithm 1

Index modification algorithm for SHC.
Input: POIs’ indexes , max gap
Output: A modified POIs’ indexes
(1) = first index in ;
(2)for  each index   do
(3)  if     then
(4)     ;
(5)         ( , encrypted POI);
(6)     ;
(7)else
(8)     ;
(9)  end  if
(10) end  for
(11)  return