|
Algorithm 2. Determination of the minimum communication radius of inters cluster communication. |
| Input: the sensor node set , the number of cluster head k.
|
| Output: the set of relay nodes RS.
|
| 1. Suppose all nodes in the set as generic point, generates the corresponding k order Voronoi diagram ; |
| 2. The set of polygon for Voronoi diagram is denoted as
, where is the i-th polygon for ; |
| 3. ; |
| 4. while do |
| 5. for each do |
| 6. if is the generic point of polygon then |
| 7. record the occurrence time of node ; |
| 8. end if; |
| 9. end for; |
| 10. Find out the which denotes the maximum number of occurrences of generic point; |
| 11. The node can be added in the set of ; |
| 12. ; |
| 13. end while. |