|
Algorithm 1 Optimal caching, cloud, and joint computing (CCJ) algorithm. |
-
1:
Initialize, and other known parameters;
-
2:
for
do
-
3:
if
then
-
4:
Calculate according to (14);
-
5:
-
6:
else
-
7:
Calculate according to (15);
-
8:
Calculate according to (17);
-
9:
if
then
-
10:
-
11:
-
12:
else
-
13:
-
14:
-
15:
end
if
-
16:
end
if
-
17:
end
for
-
18:
Calculate , ,
-
19:
Calculate according to (13);
|