Research Article

Dynamic Resource Allocation and Task Offloading for NOMA-Enabled IoT Services in MEC

Algorithm 1

The dynamic resource allocation and task offloading (DRATO) algorithm.
Require:
(1) Input: , , , , , , , , ;
(2) Output: The CPU-cycle frequency decision and transmission power decision ;
(3)for to do
(4)  for to do
(5)   Compute according to the formula (25);
(6)   Compute according to (1);
(7)    are calculated according to the formula (28);
(8)   Obtain the power strategy of device with the minimal energy consumption ;
(9)   Compute based on the known variable values;
(10)   Update queue length according to (8);
(11)  end for
(12)  Each device attains the best power strategies in the -th iterations;
(13)  Generate the updated strategy profile, ;
(14)end for