|
Algorithm 1: Subcarrier scheduling and user pairing scheme. |
| 1: |
Input:, U, , and . |
| 2: |
Output: Subcarrier mapping and user pairing . |
| 3: |
Initialize: and , where i denotes the ith element of ; |
| 4: |
whiledo
|
| 5: |
while
do
|
| 6: |
Select the ith element of ; |
| 7: |
Determine the th and th users; |
| 8: |
Calculate as (16); |
| 9: |
Record , subcarrier scheduling and user pairing ; |
| 10: |
; |
| 11: |
end while
|
| 12: |
; |
| 13: |
; |
| 14: |
end while |
| 15: |
Search the maximum and corresponding subcarrier scheduling and user pairing . |