Assignment uses squared distance to each displayed centroid. The table keeps the starting centroid coordinates visible so every distance has a shown source.
highlighted = computed this step
Squared distance decides the assignment
For every point, the table recomputes d^2 to c1=(1, 1) and c2=(7, 7).
d2=(x−cx)2+(y−cy)2
Nearest centroid
The first three points have distance 2 to c1. The last three have distance 2 to c2.
assignments=[c1,c1,c1,c2,c2,c2]
Summary
No square root is taken. Equal squared distances would use the lowest centroid index, so the assignment rule is deterministic.