Artificial Intelligence, Machine Learning, Science, Software Development, Information Technology.
Initially, the algorithm randomly picks two centroids for the data points as shown above in cross marks. Then it will go through each of these data points to see which of these two cluster centroids(red and blue) are closer. Then, assign these data points to either a red or blue centroid (whichever