Research Article

TASC-MADM: Task Assignment in Spatial Crowdsourcing Based on Multiattribute Decision-Making

Algorithm 2

TASC-MADM algorithm.
Input: a set of workers , a set of tasks , parameters
Output: S, which is the result of task assignment
(1)
(2)
(3)For each :
(4) Calculate the radius
(5) Calculate from the task to each worker
(6) Obtain and normalize the decision matrix by calling Algorithm 1
(7) If :
(8)  For in range ():
(9)   Compute the using equation (7)//, it is the number of the worker for the task .
(10)   Compute the reward using equation (4).
(11)   
(12)  Sorted descending by scores
(13)  For each in :
(14)   If in :
(15)    
(16)    
(17)    Break
(18)Return