Research Article

A New Discrete Grid-Based Bacterial Foraging Optimizer to Solve Complex Influence Maximization of Social Networks

Algorithm 1

BFO algorithm.
(1)Initialize the food sources ().
(2)Elimination-dispersal loop: l = 1 to Ned do
(3)Reproduction loop: k = 1 to Nre do
(4)Chemotaxis loop: j = 1 to Nc do
(5)For each i = 1 to S do
(6)Compute fitness function for ith bacteria, J (i, j, k, l).
(7)Let .
(8)Tumble: generate a random vector .
(9)Swim: continue to move in the direction of with the chemotactic step-size , and update the location of ith bacteria until the fitness value does not become better.
(10)End for
(11)End Chemotaxis loop
(12)End Reproduction loop
(13)End Elimination-dispersal loop