Skip to main content
. 2024 Jul 20;24(14):4711. doi: 10.3390/s24144711
Algorithm 1 Algorithm of FPCB (P4)
  • Require: 

    A, P, Bkb, P (This is Inputs)

  • Ensure: 

    B, A (This is Outputs)

  • 1:

    Set the initiate solution B(0),P,A

  • 2:

    while A is not full do

  • 3:

       calculate the capacity of each RB

  • 4:

       for each n[1,length(A)] do

  • 5:

         if An is not full then

  • 6:

            for each i[1,length(An)] do

  • 7:

              allocate this slice to the MS

  • 8:

              calculate the rate of this slice in the block n

  • 9:

              R = R + Ri

  • 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:

         Try other kind of B

  • 16:

         Renew the channel allocation A

  • 17:

       end for

  • 18:

    end while

    return Outputs B, A