Minimizing Clustering Errors

What is the method to partition n numbers into k groups to achieve the smallest sum of errors within each group?

Answer Panel