Research Article

FLECH: Fuzzy Logic Based Energy Efficient Clustering Hierarchy for Nonuniform Wireless Sensor Networks

Algorithm 1

FLECH.
FLECH Algorithm:
  Input: A non-clustered WSN
  Output: Clustered WSN
= Total number of nodes
= Threshold value used for electing CH
 FCH = Array of final cluster heads
 FCM = Array of cluster members
= sensor node
 for all the nodes in the networks
   
   if ()
     = probationary CH
   else
     = member
 for all the probationary CH nodes
    (i)    = residual energy of the node.
    (ii)   = Centrality of the node within its Network Dimension
    (iii) _to_BS = Distance to BS
    (iv) Chance = FuzzyChance(, , _to_BS)
    (v)  Send probationary_CHto all neighbor probationary CH nodes
    (vi) = list of all probationary_CH from neighbor nodes
    (vii) this = current sensor node
    if ()
     advertise Elected_CH
    else
     broadcasts Quit_CH
    end
 FCH = set of elected CH nodes
 FCM = set of non-CH nodes
 for all the cluster members
 send Join_Req to closest CH
 exit