|
Algorithm 2 Clustering based on minimum separation distance enforcement between CHs. |
|
procedure
WSN clustering
|
| inputs: |
|
|
% N: set of live nodes % |
| ← d
|
% d: minimum forced distance % |
| p
|
% p: Percentage of live nodes to become CHs % |
| ←
|
% : number of the desired CHs % |
| outputs: |
|
|
% set of CHs % |
|
|
% set of clusters % |
| steps:
|
| 1) For each node , if the distance from to the closest already selected is less than d, then calculate each of the fuzzy input variables: Energy, BS_Distance, Density, Compaction AVG_Energy. |
| 2) Calculate the fuzzy output variable chance for each based on the linguistic variables using the proposed fuzzy inference system |
| 3) Select with the highest chance value among the nodes located away from any pre-selected by the distance d
|
| 4) Repeat Steps 1–4 until reaching
|
| 5) Form clusters, , by joining each to the closest
|
|
end procedure
|