Research Article

Cooperative Edge Computing Task Offloading Strategy for Urban Internet of Things

Algorithm 1

Edge scheduler resource allocation algorithm.
Input:
, location information for collaborative service provider, the number of the collaboration service provider, the set is a subset of the cooperative offloading service provider strategy set
Output:
The optimal strategy set of the edge scheduler
1: A weighted directed graph can be generated according to the location of the collaborative service provider
2: While true do
3: Calculate the delay, energy consumption, and cost of offloading tasks
4: Using dynamic programming to solve the equilibrium solution of the subgame on the cooperative offloading service provider strategy set
5: Solve the optimal corresponding strategy of the cooperative offloading service provider to the subgame equilibrium solution
6: If then
7: Return
8: Else
9:
10: End If