Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 1

Point x y

P1 3 8 K=3
P2 4 7
P3 2 6.5
P4 5.5 3.25
P5 4 1.5
P6 8 1

First Iteration

C1 3 8
C2 4 7
C3 8 1

1 2 3 Clusters
P1 0 1.414214 8.602325 1
P2 1.414214 0 7.211103 2
P3 1.802776 2.061553 8.13941 1
P4 5.367728 4.038874 3.363406 3
P5 6.576473 5.5 4.031129 3
P6 8.602325 7.211103 0 3

Second Iteration

C1 2.5 7.25
C2 4 7
C3 5.833333 1.916667

1 2 3 Clusters
P1 0.901388 1.414214 6.710791 1
P2 1.520691 0 5.403831 2
P3 0.901388 2.061553 5.975064 1
P4 5 4.038874 1.374369 3
P5 5.942432 5.5 1.880086 3
P6 8.325413 7.211103 2.352599 3

So Now

Cluster 1 (P1,P3)
Cluster 2 (P2)
Cluster 3 (P4,P5,P6)

You might also like