Research Article

QoE-Driven D2D Media Services Distribution Scheme in Cellular Networks

Algorithm 2

MSRA greedy scheme.
(01) Input:
(02) User U, Media service , Popularity function
(03) Bandwidth resource ,
(04) Output:
(05) Optimal Bandwidth Resource Allocation
(06) Procedure MSRA
(07) while
(08)if (user request m from )
(09)user achieve that contains interference;
(10);
(11)else
(12)sort all by decreasing order;
(13)if ()
(14) allocate bandwidth
(15)
(16)else
(17) remain the same
(18)endif
(19)endif
(20) when user has completed transmission, set
(21) endwhile