Please can someone give me the comparison between "Simulated Anneanling Algroithm" and "k-means Algorithm".On the other hand, i want the source code in C++ for each algorithm.
K-Means is a clustering algorithm, that is it identifies better groups in a data based on a loos function named as squared sum of errors (SSE). Simulated Annealing is a heuristic based search strategy or optimisation strategy, which approaches it probabilisticaly.
Well SA, is more generic and can be applied for different optimisation algorithms. You may look at this paper http://www.sciencedirect.com/science/article/pii/003132039190097O. Rather than C++, you might want to use 'R', 'Matlab'.