Skip to main content
. 2020 Dec 31;21(1):217. doi: 10.3390/s21010217
Algorithm 2 CoMP Clustering and Dynamic Spectrum Allocation Algorithm
Input:   KΩ,MΩ,H,Q,C,Y
Output:   Clustering Result and RB Allocation;
1: Initialization:
2: Each user selects the neighboring RRU with the requested content as the cooperative set
3: Coalition Structure Update Process:
4: forkKΩdo
5:     while Vk<Vkth do
6:         for BmFk do
7:             if ηmkVk is minimum of all ηmkVk,BmFk then
8:                 FkFk{Bm}
9:             else if VkFm*<Vkth then
10:                 Fm*Fm*{k} and update RB Allocation
11:             end if
12:         end for
13:         for m{MΩFk} do
14:             if v(Fkm)>v(Fk) then
15:                 v(BmFm*k)>v(BmFm*) and (13) satisfied
16:                 Fm*Fm*{k} and update RB Allocation
17:             end if
18:         end for
19:     end while
20: end for
21: Repeat:
22: formMΩdo
23:     update Fm* according to formula (20) and H(Bm), update RB Allocation
24: end for
25: Until stable coalition structure