Research Article
An Efficient Traffic Congestion Monitoring System on Internet of Vehicles
Algorithm 1
Pseudocode of TCC calculation algorithm.
TCC Calculation Algorithm | (1) | (2) | (3) | (4) | (5) For each do | (6) If rk.device_id = and rk.travel_direction then | (7) | (8) | (9) | (10) End if | (11) End for | (12) For each traveling direction of do | (13) Read | (14) Read | (15) Read | (16) If then | (17) | (18) Write | (19) End if | (20) | (21) | (22) | (23) | (24) Write | (25) Write | (26) End for |
|