Research Article
Performance Analysis of Directional Ultra-Dense Networks with Dynamic Spectrum Partition Strategy
Algorithm 1
Dynamic subchannel allocation strategy based on directional antenna.
(1) | Initialize: , . | (2) | for to do | (3) | Calculate ; | (4) | for to do | (5) | Calculate and then obtain the shaded area coverage ; | (6) | for to do | (7) | ifthen | (8) | ifthen | (9) | if or then | (10) | Subchannel is assigned to to ; | (11) | Mark ; | (12) | Mark ; | (13) | break; | (14) | else ifthen | (15) | Return to line 5; | (16) | end if | (17) | else ifthen | (18) | Return to line 5; | (19) | end if | (20) | else | (21) | Select an idle subchannel to assign it for ; | (22) | Mark ; | (23) | Mark ; | (24) | end if | (25) | end for | (26) | end for | (27) | end for | | If used, the tag is invalid. |
|