Research Article

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

Algorithm 1

SN-CI algorithm.
(1)Input:
(2)Output: coalition structure
(3)
(4)fordo
(5);
(6)fordo
(7)  ifthen
(8)   ;
(9)   ;
(10)   .
(11)  end if
(12)end for
(13);
(14)whiledo
(15)  ;
(16)  fordo
(17)   ifthen
(18)    ifthen
(19)     ;
(20)     ;
(21)     .
(22)    end if
(23)   else ifthen
(24)    ;
(25)    ;
(26)    .
(27)   end if
(28)   ;
(29)   .
(30)  end for
(31)end while
(32)ifthen
(33)  .
(34)end if
(35)end for
(36)return:.