|
Algorithm 1 Similarity-Based User Clustering Algorithm |
-
1:
Initialization: the number of UAV N; the similarity matrix defined as in (9).
-
2:
Build the adjacency matrix , and calculate the degree matrix with diagonal element .
-
3:
Calculate Laplace matrix .
-
4:
Calculate normalized Laplace graph matrix .
-
5:
Pick a number of N eigenvalues of of .
-
6:
Calculate the N smallest eigenvectors .
-
7:
Let the matrix have the eigenvectors as columns.
-
8:
Use K-means clustering to cluster the rows of the matrix .
-
9:
Output: the division result of cluster .
|