Research Article
Latency-Aware Computation Offloading for 5G Networks in Edge Computing
Algorithm 2
Shortest time-to-completion first with multiusers MEFP.
| | Inputs: E, U, Gi = (Ti, DPi), M, ri,s, fi, Li | | | Output: Optimal offloading strategy ofmin for multiusers | | (1) | List all optional offloading strategies OF = {of1, of2, …, ofN } | | (2) | for ofi in OF do | | (3) | for aj in ofido | | (4) | for ek in E do | | (5) | Create a set Uk for each users with aj = ek | | (6) | Update the transfer rate ri,s of each tasks | | (7) | end for | | (8) | for ti in Ukdo | | (9) | Call EFP algorithm | | (10) | end for | | (11) | end for | | (12) | Compute the total execution delay Tifinish for offloading strategy ofi | | (13) | end for | | (14) | Select the offloading strategy ofmin with minimal execution delay |
|