Algorithm 1 Best-SNR-Based Association. |
-
1:
Place a UAV in the center of each cluster
-
2:
Calculate NLoS-SNR() using Equation (8)
-
3:
, NLoS-SNR-Best = zeros(, 1)
-
4:
for to do
-
5:
count
-
6:
while count do
-
7:
(NLoS-SNR(:,m))
-
8:
NLoS-SNR-Best
-
9:
-
10:
Delete NLoS-SNR
-
11:
count ← count
-
12:
end while
-
13:
end for
-
14:
total-throughput ← sum(NLoS-SNR-Best)
|