Research Article

Bacterial Colony Algorithms for Association Rule Mining in Static and Stream Data

Algorithm 2

Pseudocode of BaCARO-II algorithm.
procedure [P] = BaCARO-II(,,)
initialize P
t 1
f evaluate(P)
while not_stopping_criterion do
for i=0 to Size(P) do//Intracellular communication loop
rf inCellular(P,,)
f update(f,rf)
end for
for j=0 to Size(P) do//Extracellular communication loop
exCellular()
Foreach in eachdo
if bacterialDensity()==true then//Quorum-sensing
P disperse()//Dispersion
else
Foreach in do
MoveToBestDirectionInExtracellularNetwork()
end Foreach
end Foreach
end for
P
f evaluate(P)
P select(P,f)
t t+1
end while
end procedure