Input: A set ofndatapoints??????
�
,??????
�
,…,??????
�
in R
d
Common Heuristic in Practice:
The Lloyd’s method
Repeatuntil there is no further change in the cost.
•For each j: C
j←{??????∈??????whose closest center is ??????
�}
•For each j: ??????
�←mean of C
j
Initializecenters ??????
�,??????
�,…,??????
�∈R
d
and
clusters C
1,C
2,…,C
kin any way.
[Least squares quantization in PCM, Lloyd,IEEE Transactions on Information Theory, 1982]
Holding ??????
�,??????
�,…,??????
�fixed,
pick optimal C
1,C
2,…,C
k
Holding C
1,C
2,…,C
kfixed,
pick optimal ??????
�,??????
�,…,??????
�