Research Article

Energy Balanced Redeployment Algorithm for Heterogeneous Wireless Sensor Networks

Algorithm 2

EBRA.
// : the number of the logic neighbors of node
// : the sampling time
Step  1. Find out logic neighbors node in of node ;
Step  2. For
Step  2.1. Set distance coefficient
Step  2.2.
Calculate the virtual force between node and its neighbor node ;
Step  2.3.
Compare the energy of node and node ,
Step  2.4.
Calculate the energy differential coefficient to fix the Virtual force,
Step  3. Calculate the resultant virtual force;
Step  4. Calculate the accelerated speed and speed of node and then move node to new position;
Step  5. Update ;
Step  6. Go back to Step  1.
Step  7. Find out logic neighbors node in of node ;
Step  8. For
Step  8.1. Calculate the virtual force between node and its logic neighbor ;
Step  9. Calculate the resultant virtual force considering node level ;
Step  10. Calculate the accelerated speed of node and speed , node move to new position;
Step  11. Update to
Step  12. Go back to Step  1.