Particle Competition Algorithm
Learn about the particle competition algorithm for community detection.
We'll cover the following...
Let’s learn about the particle competition algorithm in this lesson. This algorithm uses concepts from genetic algorithms to find communities inside a complex network. Unlike the Louvain method, it doesn’t try to maximize modularity but rather uses the dynamics of movements inside the network to define the communities.
Understanding the particle competition algorithm
Unlike the Louvain algorithm, to use the particle competition algorithm, we need to define how many communities we’re trying to find inside the network. Let’s say we’re looking for
Then, at the start of the algorithm, we put
Then, we’re going to start iterating over the network. At each timestamp, the particle will choose a node to visit. When a particle visits a node, its dominance over this node increases. If a rival particle visits that node, the original particle dominance is reduced, and the newer particle dominance increases.
As time goes by, we expect the dominance of particles to converge to regions of our complex network. So, in the end, we’ll end up with each region of dominance being a community identified by each ...