Research Article

Threshold Balanced Sampled DEEC Model for Heterogeneous Wireless Sensor Networks

Algorithm 2

The proposed algorithm.
Compute all alive nodes
Compute the CH percentage
For r=1:1:MaxRound
Compute and
Compute at current round
If () then
Compute for all node types
Else then
Update the based on
End if
if (node G) then
if ( then
CH i. node
Else then
Cluster member i. node
End if
Else then
Goto
End if
End For