-
1:
Inputs:
-
2:
Initialization:
-
3:
, , ,
-
4:
-
5:
Step I: Allocation to users with single
connection option
-
6:
-
7:
for
do
-
8:
if
then
-
9:
-
10:
-
11:
end if
-
12:
end for
-
13:
Step II: Allocation of users with connections
options to multiple drones
-
14:
for
do
-
15:
if
then
-
16:
-
17:
-
18:
-
19:
for
do
-
20:
-
21:
end for
-
22:
if
then
-
23:
-
24:
for
do
-
25:
-
26:
if
then
-
27:
-
28:
-
29:
break
-
30:
end if
-
31:
end for
-
32:
if
then
-
33:
-
34:
if
then
-
35:
-
36:
-
37:
end if
-
38:
end if
-
39:
end if
-
40:
if
then
-
41:
|
-
42:
end if
-
43:
end if
-
44:
end for
-
45:
Step III: Check for under utilized drones
-
46:
-
47:
-
48:
-
49:
-
50:
-
51:
-
52:
for
do
-
53:
if
then
-
54:
-
55:
-
56:
for
do
-
57:
if
then
-
58:
if
then
-
59:
-
60:
-
61:
-
62:
end if
-
63:
end if
-
64:
end for
-
65:
end if
-
66:
end for
-
67:
Step IV: Connect all unconnected users
-
68:
-
69:
-
70:
-
71:
for
do
-
72:
if
then
-
73:
-
74:
-
75:
-
76:
for
) do
-
77:
if
then
-
78:
-
79:
-
80:
-
81:
if
then
-
82:
-
83:
end if
-
84:
end if
-
85:
end for
-
86:
end if
-
87:
end for
-
88:
Step V: Remove all under-utilized drones
-
89:
-
90:
-
91:
-
92:
Outputs:
|