The Lifetime Extension of Wireless Sensor Networks Using Adaptive Energy Allocation by Distance. (14th August 2013)