Community Detection Using Genetic Algorithm and Cuckoo Search
This project was an assignment for an AI course at the Amirkabir University of Technology, where the goal was to identify communities in a network using the Genetic Algorithm and Cuckoo Search. This post will focus on the problem-specific implementations rather than a detailed explanation of the algorithms themselves.
First, let’s consider a sample input graph:
Finding Communities Using Genetic Algorithm Genetic Representation and Fitness Function:
I used a locus-based representation for this problem, as illustrated below: The modularity measure was used as the fitness function. Selection:
Roulette Wheel Selection was utilized for the selection step. Crossover and Mutation:
A uniform crossover was used as follows: The initial population was not entirely random. Instead, the process considered the network’s existing connections to avoid uninteresting divisions of unconnected nodes. This approach restricts the search space and promotes faster convergence.