Clustering

Pseudocode

        

Ready

Complexity O(n·k)