Research Article

Dynamics on Hybrid Complex Network: Botnet Modeling and Analysis of Medical IoT

Algorithm 1

Numerical simulation pseudocode.
Initialization:
(1) Network generation
(2) Parameters initialization
begin:
(1)newState[]<- hisState[]
(2)for: any node in N
(3) if node state is susceptiblesample propagation method with α;
(4) if local:
(5)  get neighbor nodes list from G and node state from hisState[];
(6)  for: any node in neighbor[]
(7)   if node state is infected, then:
(8)    infect node with ;
(9)    if count 1, update newState[];
(10) else if global:
(11)  get Nϵ global nodes global[] from G and node state from hisState[];
(12)  for: any node in global[]
(13)   if node state is infected:
(14)    infect node with and update count of received messages;
(15)    if count T, update newState[];
(16) else if node state is infected:
(17)  to recover with probability γ;
(18)  update newState[];
(19) hisState[]<- newState[];
calculate R, and refresh loop parameters.
(20)end
Output: final adoption size R