Skip to main content
. 2015 Nov 12;15(11):28603–28626. doi: 10.3390/s151128603
Algorithm 1. Minimum Energy Consumption Chain Based Algorithm (ME-CBCCP)
Input
NN,RN,CH,CCO,BS, R>r>0
Output
Enhanced network lifetime
1: Deploy nodes randomly in the fixed area
2: Apply subarea division algorithm to form the clusters (number of clusters=k) with fixed boundaries, allocate the cluster IDs to each layer of the cluster cls_id<=k. That is for NNN, NN1Local_cluster Select the closest RN1 within cluster u ϵ RN, vNN1.
3: for each cls_id<=k, repeat
  • 3.1 Elect one CH in each cluster randomly xCH where x.energy>threshold.energy. Elect CCO in each cluster where yCCO and y.energy>threshold_energy and value of 0<y<cls_id1 and. Number of C CCO in each cluster = cls_id1.

  • 3.2 for u ϵ RN, vNN1, uv  and u.energy and v.energy > 0 do

  • 3.3 compute the distance duv between u and v

  • 3.4 if duvR then

  • 3.5 add the node u and v to the set of RN1 in local cluster, set P(u,v)=1

  •    End if

  •    End for

End for
4: for each cls_id<=k, repeat
  • 4.1 transmit the data from v nodes (vNN1) to u nodes (u ϵ RN1),

  • 4.2 transmit data in order from jxyz nodes (xCH,yCCO,zBS )

End for
5: for each cls_id<=k, repeat
  • 5.1 Compare: if x.energy and y.energythreshold.energy Then

  • Go to step 3.

  • Else

Continue with step 4.
  • End if

End for