How k-means clustering works?

K-means is one of the simplest unsupervised learning algorithms that solve the well-known clustering problem. Algorithm Steps: Step 1: First decide the no of clusters (let suppose k clusters we want to create) Step 2: Randomly assign centres to these k clusters Step 3: Calculate the distance of remaining data points with these k clusters[…]