Discovering Travel Spatiotemporal Pattern Based on Sequential Events Similarity
Algorithm 5
Travel sequence recommendation algorithm (TSRA).
Input: Historical Travel sequences set HS = {L11, L12, …, L1n} of user A, city a, historical travel sequences HSA = {L21, L22, …, L2m} of city a, historical travel sequences HSAU of all users
Output: Travel recommendation sequences of city a for user A
(1)
newMedoids = TSCA (HSAU) //Cluster historical travel sequences of all users