Skip to main content
. 2021 Oct 19;21(20):6937. doi: 10.3390/s21206937
Algorithm 2: Priority or an event message at a node for an instant t
1: Read input: Time (t), Number or nodes (N(t)), position(x(t), y(t)). Type of traffic (e(t)), velocity (v(t))
2: Calculate Impactit     // as shown in Equation (1)
3: Calculate ADit       // as shown in Equation (2)
4: Calculate AVt       // as shown in Equation (3)
5: procedure PRIORITY(Impacti(t),ADi(t),AV(t))
6: Calculate Priorityi(t)     // as shown in Equation (4)