Research Article
Smart Power Management and Delay Reduction for Target Tracking in Wireless Sensor Networks
Algorithm 1
Selecting GH in one grid.
() while (after initiating or received “req-replace”) | () do | () node set a timer | () CalculateWaitTime () | () Wait () | () if wait time expired | () Broadcast (“finish_election”) | () select as GH | () end if | () if received (“finish_election” from ) | () cancel wait ( ) | () select as GH | () end if | () end if | () end while |
|