Algorithm 1 Channel selection algorithm based on matching |
1. Initialize preference lists , for eMBB users and channels |
2. Set the matching set , ; |
3. while do |
4. Set ; |
5. for each eMBB user do |
6. if
|
7. Select the optimal channel in the preference list as ; |
8. if the number of participants of maximum capacity of the channel |
9. Select the worst matching user in ; |
10. if is better than
|
11. Swap matching and in ; |
12. else |
13. ; |
14. end if |
15. Set
|
16. end if |
17.
|
18. end if |
19. end for |
20. end while |
21. Repeat steps (1)–(20) to obtain the matching result for the URLLC users. |
22. Output matching results and . |