Research Article
Efficient Computation Offloading for Service Workflow of Mobile Applications in Mobile Edge Computing
Algorithm 1
A collaboration area division method based on clustering.
Input: Qi, BWi,j, , fi,j, B, t, epoch, i, j ∈ R | Output: Gbest | (1) | for i = 1,2, …, s do | (2) | Ci = {mi} | (3) | end for | (4) | q = s | (5) | while q > k do | (6) | for i = 1 to q do | (7) | for j = i + 1 to q do | (8) | Calculate R(Ci, Cj) by (10) | (9) | get the nearest cluster and | (10) | end for | (11) | end for | (12) | for j = + 1, + 2, …, q do end for | (13) | Renumber Cj = Cj−1 | (14) | end for | (15) | q = q−1 | (16) | end while |
|