alg1

Residual energy-based clustering in UAV-aided wireless sensor networks for surveillance and monitoring applications

Algorithm 1. The algorithm is run on every sensor node before the arrival of UAV