Input: user’s trajectory dataset U, secure points set ST, ED, trajectory , anonymous parameter k, trajectory movement direction tolerance e, utility loss rate ;
Output: dummy trajectory .
(1)
for i 1 to length (ST) do
(2)
for j 1 to length (U) do
(3)
if ;
(4)
;
(5)
end if
(6)
end for
(7)
end for
(8)
Get based on the same method as shown in lines 1–7;
(9)
(10)
for i 1 to length ()
(11)
if
(12)
Delete from ;
(13)
end if
(14)
end for
(15)
Handle based on the same method as shown in lines 10–14;