Surfing online...
- 漫谈 Clustering (5): Hierarchical Clustering http://blog.pluskid.org/?p=407
- Cluster analysis http://en.wikipedia.org/wiki/Cluster_analysis
- Unsupervised Learning — Clustering Analysis http://c3h3notes.wordpress.com/2010/10/29/unsupervised-learning-clustering-analysis/
- Unsupervised clustering with unknown number of clusters http://stackoverflow.com/questions/10136470/unsupervised-clustering-with-unknown-number-of-clusters
- Hierarchical Clustering與K-Means Clustering http://sls.weco.net/blog/chang/14-nov-2008/11503
- Hierarchical clustering algorithm https://sites.google.com/site/dataclusteringalgorithms/hierarchical-clustering-algorithm
- Hierarchical clustering using C++ http://blog.o-x-t.com/2009/01/23/hierarchical_clustering/
- HIERARCHICAL CLUSTERING ALGORITHMS http://cgm.cs.mcgill.ca/~soss/cs644/projects/siourbas/sect5.html
- C/C++ Machine Learning Libraries for Clustering http://stackoverflow.com/questions/815423/c-c-machine-learning-libraries-for-clustering
- Agglomerative Clustering? http://itk-insight-users.2283740.n2.nabble.com/Agglomerative-Clustering-td3342283.html
- hierarchical clustering using flann in opencv http://stackoverflow.com/questions/15549001/hierarchical-clustering-using-flann-in-opencv
- Hierarchical k-Means in OpenCV without knowledge of “k” http://stackoverflow.com/questions/5461357/hierarchical-k-means-in-opencv-without-knowledge-of-k
Lots of algorithm/solution can be googled....I think the most appropriate is ---> Hierarchical clustering