How the K-Mean Clustering algorithm works?
If the number of data is less than the number of cluster then we assign each data as the centroid of the cluster.
Each centroid will have a cluster number. If the number of data is bigger than the number of cluster, for each
data, we calculate the distance to all centroid and get the minimum distance. This data is said belong to the
cluster that has minimum distance from this data.