|
Algorithm 1 Sum rate maximization algorithm. |
|
Input:
U, K, ,
Output:
,
-
1:
(1) Initialization:
Let denote unassigned subcarrier sets; is the power allocated to user u; represents the number of bits allocated on the subcarrier k allocated to the user u; indicates the total number of bits allocated to the user u; denotes the set of subcarriers assigned to the user u;
-
2:
(2) Carrier allocation:
-
3:
for
do
-
4:
find subcarrier k that minimizes , and assign the subcarrier to the user u; meanwhile, ,
-
5:
if
then break;
-
6:
while
do
-
7:
find the subcarrier k with the smallest in the set A, and assign them to the corresponding user u; meanwhile ,
-
8:
(3) Bit and power allocation:
-
9:
while
do
-
10:
Traverse the subcarriers corresponding to all the users; find the subcarrier k and the corresponding user u with the smallest , and allocate 1 bit of data to the subcarrier; meanwhile , ,
-
11:
return
,
|