|
Algorithm 1 Algorithm of FPCB () |
-
Require:
A, P, , P (This is Inputs)
-
Ensure:
B, A (This is Outputs)
-
1:
Set the initiate solution
-
2:
while A is not full do
-
3:
calculate the capacity of each RB
-
4:
for each do
-
5:
if is not full then
-
6:
for each do
-
7:
allocate this slice to the MS
-
8:
calculate the rate of this slice in the block n
-
9:
R = R +
-
10:
end for
-
11:
else
-
12:
jump to the next RB
-
13:
end if
-
14:
Compare which of the block has a higher rate and select it as B
-
15:
other kind of B
-
16:
Renew the channel allocation A
-
17:
end for
-
18:
end while
return Outputs B, A
|