Research Article

Load Balancing Opportunistic Routing for Cognitive Radio Ad Hoc Networks

Algorithm 1

Load Balancing Based Candidate Forwarder Sorting Algorithm.
Input: , ,
Output: An ordered candidate node set
(1) Initialize
(2) Initialize a, b, k
(3) for each and do
(4) b a
(5) for each and do
(6) if then
(7) b k
(8) else if then
(9) if then
(10) b k
(11) end if
(12) end if
(13) end for
(14)
(15) end for
(16) output
(17) end