Research Article

An Effective Heuristic-Based Approach for Partitioning

Algorithm 2

Genetic algorithm.
(1) Initialize the parameters of the genetic algorithm;
(2) Randomly generate the ;
(3) ;
(4) while ( ) do
(5)  clear the ;
(6)  compute fitness of individuals in the ;
(7)  copy the individual with the highest fitness;
(8)  while ( ) do
(9)   Select two parents from the ;
(10)  Perform the crossover to produce two offsprings;
(11)  Mutate each offspring based on ;
(12)  Place the offspring to ;
(13)end while
(14)Replace the by the ;
(15) end while
(16) return   with the best fitness;