Mobile Information Systems / 2019 / Article / Alg 1

Research Article

Detecting Suspects by Large-Scale Trajectory Patterns in the City

Algorithm 1

Transit compression algorithm (TCA).
Input: original trajectory T, distance threshold , start point , and end point
Output: compressed trajectory
(1) //set start and end points
(2) While ! =  //where is the last point in a trajectory
(3)  For each
(4)   
(5)   If then //higher than the threshold which is important for the path
(6)     ; ; ;
(7)    Break
(8)  return

We are committed to sharing findings related to COVID-19 as quickly and safely as possible. Any author submitting a COVID-19 paper should notify us at help@hindawi.com to ensure their research is fast-tracked and made available on a preprint server as soon as possible. We will be providing unlimited waivers of publication charges for accepted articles related to COVID-19. Sign up here as a reviewer to help fast-track new submissions.