| Algorithm 1 ICL-LEACH Algorithm for CH Node Election |
|
1:Require:, , , , , , , , , , , , , , , , , , , 2:Ensure: 3:While and do 4: If 5: For to do 6: If 7: and 8: CHnodebroadcasts the selected message to all the nodes 9: CH node uses TDMA to allocate time slots and transmits data 10: Else and 11: CM node waits for the broadcast information of CH node 12: CM node waits to allocate a time slot 13: End if 14: nodes enter the stabilization phase 15: End for 16: Else CH node performs data fusion and data transmission 17: End if 18: 19:Endwhile |