| Algorithm 2: Cluster Head Selection Algorithm |
|
Input: cluster numbers , clusters set .
Output: cluster head , /*Initialization*/ 1: Each UAV node broadcasts a HELLO message to its neighboring set . /*Computation*/ 2: for 3: for each UAV node 4: calculate the weight by using Equation (9) 5: end for 6: 7: = 8: broadcast claim 9: end for |