Research Article

Route Anomaly Detection Using a Linear Route Representation

Algorithm 3

Route Checking for Unordered Routes
Every stored route is an available route and every sub-route
 of an available route is an available sub-route.
Find the start location of the traveler in an available sub-
 routes of an available route and set the current line segment
to the first matched segment.
= the distance between the current location and the current line
 segment .
= the shortest distance between the current location and
 the line segment among the ones connected to .
 if (the allowable error)], then do nothing,
 else if and , then mark the unavailable and ,
 else remove the route from the available routes. If the
 available routes are empty, report an anomaly and stop.
Repeat the above step for the next location of the traveler until
 the traveler ends the route checking.