Research Article
Efficient 3D Positioning of UAVs and User Association Based on Hybrid PSO-K-Means Clustering Algorithm in Future Wireless Networks
Algorithm 1
K-means clustering algorithm.
(1) | Input: | (2) | The placements of ground users. | (3) | The number of clusters . | (4) | Start | (5) | Initialize the locations of the centroids randomly | (6) | Repeat until convergence | | For every ground user , set | | | | For each cluster , set | | | (7) | Output: | (8) | Clusters. |
|