Research Article
Maximizing the Lifetime of Wireless Sensor Networks Using Multiple Sets of Rendezvous
Algorithm 1
The algorithm for finding RPs at different levels of
.
Algorithm to find RPs at different levels of | Input: T, locations of sensor nodes, | Output: , , … | (1) of nodes at level 2, | (2) for to do | (3) of nodes at level | (4) order nodes in clockwise direction | (5) for to do | (6) | (7) if PL() ≤ then | (8) , k++ | (9) end if | (10) end for | (11) if no feasible RP set exists then | (12) | (13) goto line (4) | (14) end if | (15) end for |
|