| Ensure: target location set ; all the sensed data items generated by in ; the pairwise key ; the master key used for OPE; | | Require:; | (1) | Compute the score of each sensed data item using the public scoring function; | (2) | for to do | (3) | ifthen | (4) | Set to ; | (5) | end if | (6) | ifthen | (7) | Set to , ; | (8) | end if | (9) | ifthen | (10) | Sort the sensed data items generated by at in according to their scores; | (11) | Set to , , , ; | (12) | end if | (13) | end for | (14) | Set to , , | (15) | Return . |
|