|
Algorithm 4 bisecting K-means |
Input:
– a set of points to be clustered; K–number of clusters;
Output:
-
1:
Initialize a list of cluster to contain the cluster consisting of all the points;
-
2:
repeat
-
3:
Remove the cluster C with the largest SSE from the list of clusters ;
-
4:
K-means(C,2)
-
5:
for to number of trials do
-
6:
K-means(C,2)
-
7:
if then
-
8:
-
9:
end if
-
10:
end for
-
11:
-
12:
until (the size of is equal to K)
|