FindClusters
FindClusters[{e1,e2,…}] partitions the ei into clusters of similar elements.
FindClusters[{e1->v1,e2->v2,…}] returns the vi corresponding to the ei in each cluster.
FindClusters[data,n] partitions data into n clusters.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.