Skip to main content
. 2018 Mar 16;18(3):881. doi: 10.3390/s18030881
CFSFDP-E Algorithm
1  Input: rmax, N, η
2  For each round r
3    For each node i
4      calculate its residual energy Ei
5      If Ei > 0
6        the node is still alive, calculate its local density ρi, distance δi and density-energy ωi
7        calculate γi
8        If γi > η
9          select node i as cluster head
10      end
11     else
12      the node i is dead
13     end
14     Sort all the ω in descending order
15     Allocate normal nodes into several clusters based on the value of ω
16     Data transmission phase
17   end
18 end