Research Article
Privacy-Preserving Query Scheme (PPQS) for Location-Based Services in Outsourced Cloud
Algorithm 2
Encrypted database generation.
Input: LBSP, , , , , , | Output: , | (1) | Initialize to an empty array, to an empty database, and to an empty list; | (2) | for each do | (3) | | (4) | , and ; | (5) | for each do | (6) | ; | (7) | ; | (8) | ; | (9) | ; | (10) | | (11) | ; | (12) | ; | (13) | end for | (14) | ; | (15) | ; | (16) | ; | (17) | end for |
|