Research Article

Game-Theoretical Data Offloading for NOMA-Enabled Urban Internet of Things

Algorithm 1

Game-based data offloading algorithm (GDOA).
Input: and other parameters
Output: offloading strategy profile
1 Initialization: each device ’s strategy is
2 End Initialization
3 repeat
4 calculate the current total cost
5 foreach clusterdo
6  foreach devicedo
7   calculate the total cost
   when assuming ;
8   calculate the total cost
   when assuming ;
9   calculate the total cost
   when assuming ;
10   find the minimum cost
   from the three costs;
11   if
   then
12    compete for the opportunity to update
    strategy;
13    ifdevicewins the competitionthen
14     update its strategy from to ;
15 untilthere is no device willing to update its strategy;
16 Return