Research Article

Energy Balanced Redeployment Algorithm for Heterogeneous Wireless Sensor Networks

Algorithm 1

// : 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  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;
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.