Click here to Skip to main content
15,881,850 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I need to implement genetic algorithm in K Mean algorithm to choose initial cluster.
Please provide me any Idea as I am very new in it.
Posted
Comments
Sergey Alexandrovich Kryukov 6-Nov-13 0:30am    
Idea? Idea of what? You already told us the idea, the rest is the known algorithm. What are your concerns?
And — are you serious? — no platform, no language, no nothing...
You are probably at wrong forum... :-)
—SA
Danish Shamshad 7-Nov-13 13:13pm    
Hi Sergey
I have a list of point(x,y) I need to select n cluster.
I need solution in c# or in c language.
I need the basic idea how to start and where to start
Sergey Alexandrovich Kryukov 7-Nov-13 13:29pm    
Start with reading on the algorithm description and also on cluster analysis.
—SA

1 solution

The genetic algorithm is a metaheuristic, specifically a population based metaheuristic. The algorithm is divided into 4 stages which are.

1-Create initial population (randomly)
2-Select parents.
3-Create offspring from parents using operators of mutation and reproduction.
4-From parents and offspring create new population.
5-Go to step 2 until a stopping criteria has been reached.

If you are using the GA for clustering then you should give a codification, to every individual in the population, of course every individual will be a clustering. Using GA to generate an initial solution in a KMeans is a good idea.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900