What is the time complexity of k-means?

前端 未结 3 755
慢半拍i
慢半拍i 2021-02-04 07:06

I was going through the k-means Wikipedia page. Based on the algorithm, I think the complexity is O(n*k*i) (n = total elements, k = number

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-04 07:28

    In this answer, note that i used in the k-means objective formula and i used in the analysis of the time complexity of k-means (that is, the number of iterations needed until convergence) are different.

提交回复
热议问题