If a point has equal squared distance to two centroids, the assignment needs a stated tie policy. This lesson pins one exact tie.
highlighted = computed this step
One point, two centroids
Use one displayed point p=(1, 0) with c1=(0, 0) and c2=(2, 0).
p=(1,0),c1=(0,0),c2=(2,0)
Both squared distances are equal
The squared distance from p to c1 is 1. The squared distance from p to c2 is also 1.
d2(p,c1)=1,d2(p,c2)=1
State the tie policy
The displayed policy assigns equal distances to the lowest centroid index, so p goes to c1. This is an assignment policy, not a convergence, optimality, best-k, generalization, or randomness claim.