Research Article

Defense against Malicious Users in Cooperative Spectrum Sensing Using Genetic Algorithm

Pseudocode 1

for k = 1 to sensing limit
  for i = 1 to iterations
    for j = 1 to total SUs
      if > threshold
hard decision “1”
      else
hard decision “0”
      end
    end
    for j = 1 to total SUs
       
       
       
    end
   
   
     
     Crossover the new population
     Randomly mutation of the least fit
end iterations
  best sensing sample out of
  if
    global decision
  else
    global decision
  end
end sensing limit