Research Article

Ant Colony Optimization with Three Stages for Independent Test Cost Attribute Reduction

Algorithm 1

ACO with distributed deletion to MTR problem.
Input:
Output: , a reduct of
Method: acomtr
(1) ;//the best reduct obtained by ants
(2) for ( ; ; ++) do
(3)  for ( ; ; ) do
(4)    create ant[ ];
(5)    ;//takes the set of core attributes
(6)  end for
  //Each ant selects attributes
(7)  for (each where ant[ ] has not stopped) do
(8)   MonteCarlo( );//select the next vertex
(9)   if ( ) then
(10)    ant stops; //Delete redundant vertexes.
(11)     ;//minimal test cost
(12)    for ( ; ; - -) do
(13)     if ( ) then
(14)       ;
(15)     end if
(16)    end for
(17)    Adjust the traveled path
(18)    Update the pheromone of edges ant[ ] traveled
(19)   end if
(20)  end for
(21) end for
 //Choose the minimal test cost reduction from the last ants
(22) for ( ; ; ++) do
(23)    if     then
(24)    ;
(25)    ;
(26)  end if
(27) end for
(28) return ;