The paper discusses the k-means clustering algorithm, a widely used method for partitioning data into a predefined number of clusters, k. It identifies limitations of the standard algorithm, particularly related to the selection of initial centroids and computational complexity, proposing an optimized version that systematically determines centroids and enhances assignment efficiency. The enhanced method aims to improve clustering accuracy while ensuring the entire process operates in O(n^2) time.