Research Article
A Social Diffusion Model with an Application on Election Simulation
Algorithm 2
Preference deployment method.
: social-networks; : preference-matrix | : community-number | : the th largest community | : the th largest cluster | ( | | for to do | if then | next | else if then | add the unassigned preferences which is outside | but closest to into to | match | else | remove the preferences most away from | to the closest unassigned neighbor | cluster | end if | randomly assign the preferences in to nodes in | | end for | return the pairs of (node, preference) |
|