|
Algorithm 1: The method for obtaining initial cluster centers |
|
Input: the coordinate set of N sensor nodes ; |
| fori = 1, 2, 3, …, Ndo
|
| for
j = 1, 2, 3, …, N
do
|
| if
i == j
then
|
| set preference
|
| else
|
| calculate similarity
|
| end if
|
| end for
|
| end for
|
|
Repeat
|
| for
i = 1, 2, 3, …, N
|
| for
j = 1, 2, 3, …, N
|
| calculate responsibility
|
| if
i == j
then
|
|
|
| else
|
|
|
| end if
|
| calculate
|
| End for
|
| End for
|
|
UntilT does not change |