Skip to main content
. 2025 Dec 11;25(24):7521. doi: 10.3390/s25247521
Algorithm 2: Pseudocode for the RA_Scheduler.
  • Input: Q[BSi], user tuple UEj,Pj,γj,CQIj,RBijreq, current RBiavail

  • Output: RAdecision[BSi], updated RBiavail

  • 1:

    RBialloc0;   RAdecision[BSi]

  • 2:

    QuRLLC{jQ[BSi]Pj=PuRLLC}

  • 3:

    QeMBB{jQ[BSi]Pj=PeMBB}

  • 4:

    QmMTC{jQ[BSi]Pj=PmMTC}

  • 5:

    sort QeMBB by CQIj desc                  ▹ Serve eMBB with highest CQI first

  • 6:

    for all j[QuRLLCQeMBBQmMTC] do

  • 7:

        if RBiavailRBijreq then

  • 8:

            RAdecision[BSi][j]RBijreq

  • 9:

            RBiavailRBiavailRBijreq

  • 10:

        end if

  • 11:

    end for

  • 12:

    return RAdecision[BSi],RBiavail