K-Means Clustering:
Step 1: Choose the number of K
Step 2: Select centroids
Step 3: Assign each data to the closed centeroid point:
Step 4: Compute the new central point of each cluster:
Step 5:Resign the each point to closed new centroid point. If any reassignment happens ,go to step 4 ,otherwise go to Finish step
Finish Step: Algorithm ready!