Research Article

Designing Incentive Mechanisms for Mobile Crowdsensing with Intermediaries

Algorithm 3

Payment scheme .
Input:
Intermediaries’ biddings: ;
Participation vector
Output:
Intermediaries’ payment:
// Find the smallest losing bids of each
intermediary and stores in an array
minLoserBid;
1 fordo
2 minLoserBid(i) = the smallest losing bid of
intermediary i;
3 Find the two smallest ones from minLoserBid,
denoted as ;
4 fordo
5 ifthen
6 ;
7 else
8 ;
9 return payment vector ;