Answer:
We start by specifying the centroid for each of the 3 clusters.
C1’s centroid is (8,4) , i.e., record with rid = 1
C2’s centroid is (2,4) , i.e., record with rid = 3
C3’s centroid is (2,8) , i.e., record with rid = 5
2 2
SQROOT( |2-5| + |4-4| ) = 3
The distance between record 2 and centroid for C3 is
2 2
in C1.
The distance between record 4, i.e., point (2,6), and centroid for C1 is
2 2
in C2.
The distance between record 6, i.e., point (8,6), and centroid for C1 is
2 2
SQROOT( |8-8| + |4-6| ) = 2
The distance between record 6 and centroid for C2 is