Research Article

Modeling the Propagation of Mobile Phone Virus under Complex Network

Algorithm 1

for virus_NUM-1
 if (node[ ].status is susceptible)
  for …virus_NUM-1
   if (Link_Matrix[ ][ ] == 1 and node[ ].status is infected)
    if (random number (rn) match the infection rate )
       node[ ].status become infected
       break
    end if
   end if
  end for
  if ( > virus_NUM-1 and rn match the “immune” rate )
    node[ ].status become immune
  else if ( > virus_NUM-1 and rn match the “death” rate )
    node[ ].status become dead
  end if
else if (node[ ].status is infected)
  if (rn match the “immune” rate )
    node[ ].status become immune
  else if (rn match the “death” rate )
    node[ ].status become dead
  end if
else if (node[ ].status is immunized)
  if (rn match the “death” rate )
    node[ ].status become dead
  end if
end if
end for
for virus_NUM-1
 if (node[ ].status is dead and rn match the probability )
  node[ ].status become susceptible
else
  node[ ].status become immune
end if
end for