Research Article
Load Balancing Opportunistic Routing for Cognitive Radio Ad Hoc Networks
Algorithm 2
Load Balancing Relay Selection Algorithm.
Input: , | Output: The optimal node set | (1) Initialize arrays of | (2) Initialize values of | (3) for each and do | (4) Search the opportunistic module of | (5) F′←the candidate node set of | (6) LS′←the candidate link set of | (7) for each and do | (8) ← the used capacity of | (9) ← the available capacity of | (10) ← the LS of | (11) end for | (12) ← sorting according to Algorithm 1 | (13) ctt ← the throughput of | (14) if do | (15) ← ctt | (16) end if | (17) end for | (18) ← sorting according to Algorithm 1 | (19) output | (20) end |
|