SLIDE 22 [SelfOrg] 2-5.22
LEACH
Advertisement phase
Each node decides whether or not to become a clusterhead for the current round
Based on the suggested percentage of clusterheads for the network
(determined a priori), and the number of times the node has been a clusterhead so far
The decision is made by the node n choosing a random number between 0 and
1; if the number is less than a threshold T(n), the node becomes a cluster-head for the current round
The threshold is set as: where P is the desired percentage of clusterheads (e.g., P = 0.05), r is the
current round, and G is the set of nodes that have not been clusterheads in the last 1/P rounds
Using this threshold, each node will be a clusterhead at some point within 1/P
rounds; the algorithm is reset after 1/P rounds
⎪ ⎪ ⎩ ⎪ ⎪ ⎨ ⎧ ∈ ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ × − =
if 1 mod 1 ) ( G n P r P P n T