Research Article

Energy Efficient and Safe Weighted Clustering Algorithm for Mobile Wireless Sensor Networks

Algorithm 3

Punishing algorithm.
Begin
(1);
(2);
(3)If (( = Rate)  &&  ())
  // Rate: parameter of maximum number of faults
   defined by the administrator
  ;
(4) // Classification of the node according to its
(5) 
(6)   If () Then
(7)  If ( is CM) Then
(8)    Suppression of the node of the list of the members;
(9)   Addition of the node to the blacklist;
       EndIf
(10)    If ( is CH) Then    // CH: Cluster Head
(11)Addition of the node to the blacklist;
(12)   Set up Phase;
    EndIf
EndIf
EndIf
End.