Research Article

Optimal Improper Gaussian Signaling for Physical Layer Security in Cognitive Radio Networks

Algorithm 1

Genetic algorithm.
1:  
2:  create a random initial population of size
3:  set current population equal to
4:  repeat
5:   evaluate each member of according to its fitness value
6:   assign a rank to each member of based on its fitness
7:   compute the expectation of each member of based on its rank
8:   if    then
9:    
10:  else
11:   
12:  end if
13:  select parent individuals
14:  create crossover children from the parents
15:  create mutation children from the parents
16:  select elite individuals
17:  replace the current population
18:  
19: until the maximum number of generations is reached