Research Article

Cooperation-Driven Virtual Terminal Coalition Formation Games for Task Assignment in Mobile Crowdsensing

Algorithm 2

VTCF algorithm.
(1)Initialization stage:
(2)Virtual terminal forms an initial coalition based on Algorithm 1
(3)Coalition formation Stage:
(4)repeat
(5)fordo
(6) randomly selects from idle coalition;
(7);
(8)if is a ECS then
(9)  calculates ;
(10)  ifthen
(11)   ;
(12)  end if
(13)end if
(14)if is a ECS then
(15)  calculates ;
(16)  ifthen
(17)   ;
(18)  end if
(19)end if
(20);
(21)if is a ECS then
(22)  calculates ;
(23)  ifthen
(24)   ;
(25)  end if
(26)end if
(27) update cooperation degree according to equation (18);
(28)end for
(29)until the coalition converges to the final Nash-stable