Cooperative Edge Computing Task Offloading Strategy for Urban Internet of Things
Algorithm 3
Bidding strategies of the edge service provider.
Input:
Number of edge service providers ,Number of tasks submitted by end-users ,end-user bids , Bids of edge service providers , Resource requirements of each end-user , the available resources , Small changes in the price of local edge service providers
Output:
The optimal bidding strategy set of the local edge service provider
1: For ; do
2: For ; do
3: if and then
4: Denial of service;
5: else
6: Submit the task to the waiting queue;
7: endif
8: endfor
9: endfor
10: Sort the tasks in the waiting queue in descending order of the end user's bid
11: For; do
12: For ; do
13: Calculate the energy consumption, cost, and time delay of the task