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 |
 | |
 | Then, calculate and store \(p_{k}^{m,{n^ * }} = \arg \mathop {\max }\limits _{p_{k}^{m,n}} {V_{k}}\). |