This document discusses the analysis and implementation of a modified k-medoids algorithm aimed at improving scalability and efficiency for large datasets in clustering analysis. It compares the traditional k-means and k-medoids algorithms, illustrating that the modified k-medoids outperforms both in terms of cluster quality and execution time. The findings suggest that while k-means is popular, k-medoids provides greater flexibility and the modified version further enhances performance metrics for data mining applications.