Skip to main content
. 2022 Aug 16;22(16):6130. doi: 10.3390/s22166130
Algorithm 2: UAVs-BS request and reply to messages process
1. Initializing
2. Input:Source UAVs-BS IDs & Location Information
3. Output:UAVs-BS Placement Decision
4. do Broadcast message to call all the UAVs-BS
5. LQ+Traffic Density
6. If  LQ+Traffic Density==1, then
7. Select UAV-BS for placeman else
12. Wait for a random time and repeat the process
13. If REQ-P is received, do
14. Data Forwarding else
15. end if
16. end while
17. end process