Research Article

Reliable, Efficient, and Power Optimized Control-Channel Selection Scheme for Cognitive Radio Networks

Algorithm 1

Dynamic programming code for reliable, efficient, and power optimized (REPO) scheme.
(1) Input:  p      Number of available channels.
(2)            Maximum control-channels (Main CC + Backup CC).
(3)   Q1 to      Utility function (capacity, BER and idle time).
(4)  for     to
(5) 0
(6) end
(7) for      to p
(8) for      to
(9)    If  
(10)       {
(11)           =
(12)           = 1;
(13)       }
(14)       else
(15)       {
(16)          
(17)           ;
(18)       }
(19)   Y   ;
(20)  for    to 1
(21)  if    ;
(22) {
(23)      Output k;
(24)       ;
(25)  }
(26)  Output:
(27)  }