Skip to main content
. 2023 Jul 2;23(13):6095. doi: 10.3390/s23136095
Algorithm 2 Random-SNR-Based Algorithm.
  • 1:

    Place a UAV in the center of each cluster

  • 2:

    Calculate NLoS-SNR(U,M) using (8)

  • 3:

    Generate users-rand(|U|), Rand-NLoS-SNR = zeros(|U|,1)

  • 4:

    for m=1 to |M| do

  • 5:

        Rand-NLoS-SNR = NLoS-SNR(users-rand(1:|U|/|M|))

  • 6:

        Delete users-rand(1:|U|/|M|)

  • 7:

    end for

  • 8:

    total-throughput ← sum(Rand-NLoS-SNR)