Research Article

A Novel Task Allocation Algorithm in Mobile Crowdsensing with Spatial Privacy Preservation

Algorithm 1

Task allocation without privacy preservation.
Input: participants , workloads , each community profile , each actual
profile , each time treshold
Output: the allocation for each
1:for each   do
2:set each , ;
3:compute by ;
4:for each   do
5:if    then  ;
6:else  ;
7:for each   do
8:if    then fails;
9:while    do
10:update ;
11:;
12:, ;
13:for each   do
14:if    then  ;
15:if    then fails;
16:choose with , minimum , and maximum ;
17:, , ;
18:if    then each ;
19:if   and   then fails;