Research Article

A Comparative Analysis of Swarm Intelligence Techniques for Feature Selection in Cancer Classification

Pseudocode 2

Pseudocode for CS.
Generate an initial population of host nests;
while ( < MaxGeneration) or (stop criterion)
Get a cuckoo randomly (say, ) and replace its solution by performing Levy flights;
Evaluate its fitness
Choose a nest among (say, ) randomly;
if ( )
  Replace by the new solution;
end if
A fraction ( ) of the worse nests is abandoned and new ones are built;
Keep the best solutions/nests;
Rank the solutions/nests and find the current best;
Pass the current best to the next generation;
end while