|
Algorithm 2 CoMP Clustering and Dynamic Spectrum Allocation Algorithm |
|
Input:
|
|
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: |
fordo
|
| 5: |
while
do
|
| 6: |
for
do
|
| 7: |
if
is minimum of all
then
|
| 8: |
|
| 9: |
else if
then
|
| 10: |
and update RB Allocation |
| 11: |
end if
|
| 12: |
end for
|
| 13: |
for
do
|
| 14: |
if
then
|
| 15: |
and (13) satisfied |
| 16: |
and update RB Allocation |
| 17: |
end if
|
| 18: |
end for
|
| 19: |
end while
|
| 20: |
end for |
| 21: |
Repeat: |
| 22: |
fordo
|
| 23: |
update according to formula (20) and , update RB Allocation |
| 24: |
end for |
| 25: |
Until stable coalition structure |