Research Article

A Hybrid Swarm Intelligence Algorithm for Intrusion Detection Using Significant Features

Algorithm 1

Artificial Bee Colony.
Input: initial solutions.
Output: optimal solution.
BEGIN
  Generate the initial population ,
 Evaluate the fitness () of the population
 set cycle = 1
repeat
FOR (employed phase)
   Produce a new solution using (4)
   Calculate
  Apply greedy selection process
  Calculate the probability using (6)
FOR (onlooker phase)
     Select a solution depending on
     Produce a new solution
    Calculate
  Apply greedy selection process
If (scout phase) There is an abandoned solution for the scout depending on limit
    Then Replace it with a new solution which will by randomly produced by (3)
 Memorize the best solution so far
 cycle = cycle + 1
Until cycle = MCN
end