Skip to main content
. 2022 Jan 5;22(1):401. doi: 10.3390/s22010401
Algorithm 2: Vehicles Messages receiving and priority allocation based on deadline and size
Input: (Vehicles Messages)
Output: W1 & W2 (Messages Priorities)
  1.   For 1 to n

  2.    Ω = Ms//Receive Messages from Vi (i = 1 to n) and assign to Ω

  3.   End of for loop

  4.   For 1 to n Find Weight of  Ω according to message nature

  5.    W = Deadline * Size

  6.   If W =< Deadline * Size of theTable 1

  7.     then assign W1 in ascending order

  8.    Else W2

  9.    Return W1& W2

  10.   End of for loop