Research Article

UAV-Assisted Data Dissemination in Delay-Constrained VANETs

Algorithm 1

Trim ().
Input: Y: a list of ;
  δ: the predefined delay threshold;
  ϵ: a real number
Output: : a trimmed list of Y(1)Let be empty;(2)Remove every tuple in Y with ;(3) Partition the tuples of Y into such that for every two tuples in the same , they satisfy and ;(4)for to t do(5)  Select one tuple from with the least D;(6)  Append to ;(7)end for(8)return