|
Algorithm 1 Pseudocode for the CTA diffusion strategy |
-
1:
For any , ∈, is initialized as 0.
-
2:
at time n:
-
3:
Each UAV calculates its load through (8).
-
4:
calculates through (10).
-
5:
broadcasts it to neighboring UAVs.
-
6:
calculates the sum of (∈) through (15).
-
7:
calculates its UAV-UAV virtual force through (16)
|