Research Article

Joint Resource Allocation and Power Control Based on Vehicle’s Motion Characteristics in NOMA-Based V2V Systems

Algorithm 2

RBG reallocation algorithm.
Input:
 Vehicle i which changes its moving status; m= is the number of depends on Algorithm 1
 Output:
 The new group i belongs to;
(1)for do
(2) if then
(3)
(4) end if
(5)end for
(6)if satisfies (3) then
(7)
(8) else if then
(9)  
(10) else if satisfies (3) without (3d) then
(11)  
(12)end if