Research Article

Recommending Locations Based on Users’ Periodic Behaviors

Algorithm 4

Dynamic change matrix.
Input: matrix
t1
t2
p
T
Output: None
Begin
(1) While t2    max(T) do
(2)   If  t1  in    and  t2  in    do
(3)     matrix[t1][t2] = 0
(4)     t1 = t2
(5)     t2 = t2 + p
(6)   end
(7) end
End