Research Article
Balancing Energy Consumption in Clustered Wireless Sensor Networks
Algorithm 1
Calculate RNG at each node
.
(1) begin | (2)
; | (3)
; | (4) {Node computes factor of every link within its neighborhood.} | (5)
for each do | (6)
if then | (7)
; | (8) Link is removed from RNG. | (9)
else | (10)
if |
then | (11)
; | (12) {Link is removed from RNG.} | (13)
else | (14) {Link will be removed from RNG.} | (15) Return ; |
|