Research Article
Dynamic Task Offloading for NOMA-Enabled Mobile Edge Computing with Heterogeneous Networks
Algorithm 1
NOMA-enabled Dynamic Task Offloading (NDTO) Algorithm.
| Input: , , , | | Output: | (1) | for all do | (2) | for all do | (3) | Set the according to (27). | (4) | end for | (5) | end for | (6) | for all do | (7) | for all do | (8) | Calculate the value of . | (9) | Set the according to (29). | (10) | end for | (11) | end for | (12) | for all do | (13) | for all do | (14) | Calculate the value of . | (15) | Set the according to (31). | (16) | end for | (17) | end for | (18) | for all do | (19) | Initialize . | (20) | Sort IoT devices from low to high according to the value of . | (21) | for all do | (22) | Set the according to (33). | (23) | . | (24) | end for | (25) | end for | (26) | for all do | (27) | Initialize . | (28) | Sort IoT devices from low to high according to the value of . | (29) | for all do | (30) | Set the according to (35). | (31) | . | (32) | end for | (33) | end for | (34) | for all do | (35) | for all do | (36) | Update the values of queues , and . | (37) | end for | (38) | end for |
|