Research Article

Efficient Multitask Scheduling for Completion Time Minimization in UAV-Assisted Mobile Edge Computing

Algorithm 2

An iterative algorithm for problem (15).
(1)Initialize, ,
(2)Repeat
(3) Obtain the optimal solution of , and by Algorithm 1;
(4) Find the optimal scheduling mode, ;
(5) Update the initial position of the UAV for the next task-group:
(6)  if or then
(7)   ;
(8)  else
(9)   ;
(10) Update the time for completing the previous task-groups:
(11) Update ;
(12)Until a maximum number of iterations has been reached (i.e., )
(13)Now is the minimum time to complete all the tasks.