Research Article

Optimization Strategy of Task Offloading with Wireless and Computing Resource Management in Mobile Edge Computing

Algorithm 1

Semi-distributed TOWCRM Algorithm.
Stage 1: at UEs side
1: for each base station do
2: for each device do
3:  improved graph coloring algorithm
4:  equation (28)
5:
6: end for
7: end for
8: if then
9: send an offloading request
10: else
11: send NULL
12: end if
Stage 2: at the MEC side
13: Wait until all requests are accepted
14: for do
15: , .
16: set
17: end for
18: step 3; step4
19: equation (29)
20: let K be the set of UEs that the server accepts requests but does not accept offloading
21: while do
22: 
23: 
24:  step 3; step 4; step 19
25: if then
26: 
27: else
28: 
29: 
30: 
31: end if
32: 
33: end while
34: The MEC server forms RB allocation strategy and computing resources and starts to send offloading decision to UEs