Research Article
Cost-Effective Optimization for Blockchain-Enabled NOMA-Based MEC Networks
Algorithm 1
Heuristic offloading decision-making algorithm.
| (1) | Initialization: set , , , , , | | (2) | fordo | | (3) | ifthen | | (4) | , , remove from | | (5) | else | | (6) | , , remove from | | (7) | end if | | (8) | end for | | (9) | ifthen | | (10) | , , | | (11) | fordo | | (12) | | | (13) | | | (14) | end for | | (15) | Sort the users in ascending order according to | | (16) | Remove the end users from to , and we set | | (17) | Remove the rest users in to , and we set | | (18) | else | | (19) | Among the users in , perform Algorithm 2 for access control, where users are selected for MEC processing, and put the users into , and set | | (20) | Remove the users to , and set | | (21) | end if | | (22) | Output: . |
|