Clustering
See below for pseudocode of 2 clustering algorithms: K-means and Agglomerative clustering.
K-means Clustering
Hierarchical Agglomerative Clustering