Research Article

Emergency Situation Prediction Mechanism: A Novel Approach for Intelligent Transportation System Using Vehicular Ad Hoc Networks

Algorithm 3

(1) Sleep until periodic  _timer expires
(2) For each vehicle () in the FLSG do
  (1) Analyze the Pos, Sp and Yr.
  (2) If any of the following case arises
        (1) Case 1: pres_val (Pos) = prev_val (Pos)
        (2) Case 2: pres_val (Sp) differs with prev_val (Sp) by 30 Km/h
        (3) Case 3: pres_val (Yr) differs with prev_val (Yr) by 30 degrees.
   then
        (1) Set Dp as Abnormal.
   else
        (1) Set Dp as Normal.
(3) Return