Introduction - If you have any usage issues, please Google them yourself
K-means algorithm is a distance based clustering algorithm which is simple and classic.
Distance is used as a similarity evaluation index, that is, the closer the distance between the two objects is, the greater the similarity is.
The algorithm considers that clusters are composed of objects close to each other. Therefore, a compact and independent cluster is the ultimate goal.