|
Algorithm 1 Pseudo-code of Greedy Based Algorithm for Time Sequence Resource Allocation |
-
1:
Initialization of parameters
-
2:
whiledo
-
3:
Calculate the differential objective function towards k UAV with the closest link opportunity in the time domain.
-
4:
Select a flexible threshold value according to the maximum value of objective functions.
-
5:
Find link opportunities for each UAV that satisfies .
-
6:
if Only one UAV is allocated to this opportunity then
-
7:
Save link opportunity to UAV.
-
8:
Remove elements in when .
-
9:
Update parameters.
-
10:
else
-
11:
Save link opportunities with the maximum value to UAV.
-
12:
Remove elements in when .
-
13:
Update parameters.
-
14:
end if
-
15:
end while
-
16:
return
|