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 of cluster iteration)
So can someone explain me this statement from Wikipedia and how is this NP hard?
If
k
andd
(the dimension) are fixed, the problem can be exactly solved in timeO(ndk+1 log n)
, wheren
is the number of entities to be clustered.