Skip to main content

Table 2 DP power allocation algorithm

From: Throughput maximization-based optimal power allocation for energy-harvesting cognitive radio networks with multiusers

Algorithm 2

DP power allocation algorithm

1:

Input all statistics of the channel gain information,

 

subcarriers occupation state and EH process;

2:

For k=0,1,…,K−1:

 

Calculate and store Rk for all system states according

 

to Algorithm 1;

3:

For k=K−1,K−2,…,0:

 

Calculate and store Vk for all system states based on

 

(30), (31) and (32);

 

Then, calculate and store \(p_{k}^{m,{n^ * }} = \arg \mathop {\max }\limits _{p_{k}^{m,n}} {V_{k}}\).