Clustering is one of the important techniques of data mining. It can be divided data into several classes or clusters according to certain rules, which makes the data objects of the same class have high similarity, and the different data objects are very different. In this paper, the clustering algorithm is analyzed and compared in detail, and summarize advantages and disadvantages of this algorithm.