Research Article
Intelligent Traffic Management System Based on the Internet of Vehicles (IoV)
| | Set | | (1) | Set | | (2) | # To prevent starvation, find the road with the largest close time with the condition that it has vehicles, excluding those having no vehicles | | (3) | Let represents the road with the longest close time and initialize it to −1 | | (4) | For x in all the roads: | | (5) | ifthen Set | | (6) | If, then Setelse Set # select the road having the largest number of cars | | (7) | # now specify the green light time based on the number of cars | | (8) | Let | | (9) | Set | | (10) | # Adjust the calculated green timer to be within the maximum and minimum allowed values for the open timer | | (11) | Ifthen Set | | (12) | Else ifthen Set | | | End of “Select Next Open Road” algorithm. |
|