Research Article
Stochastic Bat Optimization Model for Secured WSN with Energy-Aware Quantized Indexive Clustering
Algorithm 1
Quantized Schutz indexive Linde–Buzo–Gray clustering algorithm.
Input: Sensor nodes , | Output: Number of clusters | Begin | 1: for each sensor node | 2: Measure residual energy ‘’ | 3: Initialize the number of clusters | 4: For each cluster | 5: Initialize the centroid ‘’ | 6: End for | 7: For each cluster centroid ’ | 8: For each residual energy ‘’ of node | 9: Measure the similarity ‘’ | 10: () then | 11: Group sensor nodes into particular clusters | 12: end if | 13: End for | 14: End for | 15: Obtain clustering results | 16: for each cluster | 17: Select cluster head ‘’ | 18: end for | 19: End for | End |
|