Research Article

Recommending Locations Based on Users’ Periodic Behaviors

Algorithm 1

Mining multiple periods.
Input: S (time sequence)
st (support threshold)
ts (target state)
Out put: period (all periods in the time sequence)
begin
(1)  matrix,map, T = GeneratingMatrix (S, ts) // creating the suspected periods matrix based on the
time-stamps the target state happened
(2)  periods = MiningPeriods (matrix, st,map,T)
(3)  return periods
end