Research Article

Detecting Suspects by Large-Scale Trajectory Patterns in the City

Algorithm 2

Location-changed model (LCM).
Input: all the path P of a certain people
Output: active tuples
(1)
(2) for in P do
(3)  if then
(4)   
(5)   if then
(6)    ,
(7)   if then
(8)    ,
(9)   else
(10)    ,
(11)return