Research Article

Optimization Algorithm for AoI-Based UAV-Assisted Data Collection

Algorithm 4

Greedy algorithm based on data collection order optimization.
Input: Node coordinates in each cluster, the set of cluster heads , the
   node situation in each cluster;
Output: The order of node uploads in each cluster, the value of the suboptimal
   function of P3;
1: for i=1:M do
2: for j=1: do
3: table⟵Record the nodes that have been uploaded;
4: list⟵Record nodes that have not been uploaded yet;
5: According to equation (20), the next node that can lower the objective
  value of the function is found from the list.
6: end for
7: end for