Research Article

Bioinspired Mobility-Aware Clustering Optimization in Flying Ad Hoc Sensor Network for Internet of Things: BIMAC-FASNET

Algorithm 1

Psuedocode of UAV weight computation.
Procedure weight_computation ( )
Input: ,
Output:
,
//initial values of UAV degrees and energies
//summation of all nodes remaining energy and degree
  
  
end for
  
//average UAV neighbors
//average of UAVs residual energy
fordo
 if then
//compute weight of UAV w.r.t energy
 else if then
end if
ifthen
//Compute weight of UAV w.r.t UAV degree
 else if then
  
  
end if
ifthen
//compute weight of UAV w.r.t UAV mobility
end if
fordo
//calculation of weighting factor values
fordo
  
  end for
end for
return,
//the weight values of UAVs and total clusters are returned
end procedure