| Algorithm 3: Prioritization of Safety and Non-Safety List (i.e., ). |
| Input: and |
| Output: and lists i.e., prioritize the list of safety and non-safety messages are sent to vehicles |
| 1. for |
| // Q1 is the random list of L3. |
| 2. for |
| Find min |
| // Build list from minimum to maximum |
| End for |
| 3. Non-Safety for (j=1; j<=length of L3; j++) |