Research Article
Topology Control by Transmission Range Adjustment Protocol for Clustered Mobile Ad Hoc Networks
Algorithm 2
Pseudo code for non-volunteer cluster head selection.
Begin | โ | Let โ= current_head//volunteer or non-volunteer | Compute max_wtโโmax where | Set next_head = where โmax_wt | Head () = next_head | For (every other than next_head) | | If dist (next_head, ) | | Head () = next_headโ//hand off | Else | Reaffiliate to other head within rangeโ//Reaffiliation | Else | Select as volunteer headโ//Reelection | | End if | | End for | โ | โEnd |
|