Algorithm 4: Two-step QABC clustering |
Input: D dataset contains best feature values for each
Fitness Function “Sensitivity” Output: Best solution of final cluster center () j = 1, 2 Begin Initialization phase.
Initialize the food source within the boundary of given dataset in random order; Apply the K-means algorithm Send the employed bees to the food sources; /* Computed centers */ End For Iteration = 0; Do While (the termination condition is not met) For (each employed bee)/* Employed bee’s phase */ For i = 1:SN
For i = 1:SN Compute the probability value associated with each food source. End For For i = 1:SN /* Start the onlooker bees phase*/ If (rand ( ) < Pri) /* Pri the probability associated with ith food source */
i = i + 1; End If End For If (any employed bee becomes scout bee)/* Scout bee’s phase */ Send the scout bee to a randomly produced to food source; End if Memorize the best solution achieved Iteration = iteration + 1 End While Obtain final cluster Center End |