Research Article
An Incentive Mechanism for Data Delivery in Mobile Crowdsensing Based on D2D Communications
Input: time, bid, maxBid | Output: Bid acceptance | 1: if bid >= highestPrice then | 2: return true | 3: end if | 4: waitingTimeLimit ← , where A | 5: if time < waitingTimeLimit then | 6: if bid > maxBid then | 7: return maxBid = bid | 8: end if | 9: return false | 10: end if | 11: if bid > maxBid and bid >= lowestPrice then | 12: return true | 13: end if | 14: return false |
|