|
Algorithm 3: Stable task assignment algorithm with adjustable bids |
|
Step 1: Initialization
|
| 1:
|
|
Step 2: Buyer and seller’s transaction phase
|
| 2: while does |
| 3: for do |
| 4: first calculate , then calculate and from , then calculate
|
| 5: if , then |
| 6: for do |
| 7: the user , sends the solicitation packages and to the task.
|
| 8: end for |
| 9: end if |
| 10: end for |
| 11: for do |
| 12: after collecting the bid packets sent by sellers, use to indicate the set of sellers for the bid packets received at use the DP algorithm to select the sellers from and reject the unselected sellers |
| 13: end for |
| 14: for do |
| 15: if , is rejected by and , then |
| 16:
|
| 17: else, if , or receives , then |
| 18:
|
| 19: end if |
| 20:
|
| 21: if , then |
| 22:
|
| 23: end if |
| 24: end for |
| 25:
|
| 26: end while |