Skip to main content
. 2018 Nov 15;18(11):3959. doi: 10.3390/s18113959
Algorithm 1 User Characteristic Aware Participant Selection for High-Heat Regions (UCPS-H)
Input:
 Task set ϑ, User set N;
Output:
 1: Participant ui selected for task θj, the payment for participants Ycitotal and participants set U;
 2: ni1 to Z,θj1 to ϑ;
 3: while bidniθjBmaxθj do
 4:  Calculate the comprehensive data quality of users for task θj through Equation (31); and rank the comprehensive data quality of users in descending order
 5:  Assign task θj to user ni with the highest comprehensive data quality;
 6:  UargmaxQoCniθj¯;
 7:  Yniθjbidniθj;
 8:  θjθj+1;
 9:  return to 3;
10:  if task θj achieves the desired data quality then
11:    remove it from ϑ;
12:  end if
13:  if all tasks are assigned or budget runs out then
14:    stop the selection process;
15:  end if
16: end while
17: return Xniθj,Yniθj,U;