Research Article
Double Auction-Based Two-Level Resource Allocation Mechanism for Computation Offloading in Mobile Blockchain Application
Algorithm 2
G-TRAP: pricing and total utility algorithm.
| (i) | for do | | (ii) | | | (iii) | for do | | (iv) | if in then | | (v) | if then | | (vi) | | | (vii) | else | | (viii) | if then | | (ix) | | | (x) | else | | (xi) | | | (xii) | end if | | (xiii) | end if | | (xiv) | end if | | (xv) | | | (xvi) | | | (xviii) | end for | | (xix) | Calculate sum of and sum of | | (xx) | Output: payment of users, total utility |
|