Problem - A - Codeforces
Problem - A - Codeforces
Problem - A - Codeforces
Awei2222 | Logout
Background
Task
P : max ∑ fj (1)
j
1, gj ≥ T BSj
fj = { (2)
0, gj < T BSj
Here, fj represents the transmission result of the j-th frame: when the actual
transmitted bits gj (computed via (5)) is not less than the size of the frame, i.e.,
T BSj (transport block size), the frame would be successfully transmitted so that
fj = 1. Otherwise, fj = 0.
Time domain resource, which is divided into several transmission time intervals
(TTIs), each TTI corresponds to a transmission time of 0.5 ms.
Frequency domain resource, which is divided into several resource block
groups (Resource Block Group, RBG), each RBG corresponds to a
transmission bandwidth of 5760 kHz.
Power domain resource: each cell has a fixed maximum transmission power to
serve users.
(k)
brnt ∈ {0, 1} (3)
∑ ∑ prnt ∑ prnt
(k) (k) (k)
prnt ≥ 0, ≤ R, ≤4 (4)
r n n
(k)
Here, brnt is a Boolean variable denoting whether the r-th RBG of cell k is
(k)
allocated to user n at TTI t , and prnt is a nonnegative continuous variable
denoting the power allocated to user n in the r-th RBG of cell k at TTI t . For each
TTI of each cell, the power range of each RBG is between 0 and 4 , and the total
power of all RBGs can not be larger than R .
When the radio resources are allocated to the users, the XR data transmission can
be provided for them. Assume that the j-th frame belongs to the n -th user, the
actual transmitted bits for the frame, i.e., gj can be given by:
t1,j
gj = W × ∑ ∑ ∑ brnt × log2 (1 + snt ).
(k) (k)
(5)
t=t0,j k r
(k)
Note that W × log2 (1 + snt ) is the well-known Shannon formula, which
(k)
represents the transmitted data volume, where snt represents the transmission
SINR (Signal-to-Interference-plus-Noise-Ratio) of user n in cell k at TTI t , and
W = 192 is the constant number of available frequency resounce elements of one
RBG. t0,j and t1,j denote the start TTI and the end TTI of frame j, respectively. The
physical meaning of Formula (5) is that the number of bits transmitted within the
valid time period, t0,j ∼ t1,j , will be counted as valid transmission bits for the j-th
frame.
⎛ ⎞
1
(k)
∑r b rnt
= ⎜ ∏ srnt ⎟
(k) (k)
(6)
⎝r,b(k) =1 ⎠
snt
rnt
Formula (6) shows the computation of user-level effective SINR: the transmission
(k)
SINR of user n , i.e., snt , is the geometric mean of the SINRs of scheduled RBGs.
(k)
Then, formula (7) shows the computation of RBG-level effective SINR. s0,rnt is a
given constant denoting the initial SINR on RBG r of cell k at TTI t , which
(k)
indicates the quality of the channel. Another given constant value dmrn represents
the interference factor between user m and user n on RBG r, when user m is
(k) (k)
scheduled on cell k . Note that dmrn = dnrm ≤ 0 , which reveals that scheduling
multiple users on the same RBG-TTI resource will cause a decrease in the SINR of
each user.
To sum up, participants are required to find an efficient radio resource allocation,
so that more XR data frames can be successfully transmitted.
Input
The input of a single test has (4 + R ⋅ K ⋅ T + N ⋅ R ⋅ K + 1 + J) lines, which
contains user number N , cell number K , TTI number T , RBG number R , initial
(k)
SINRs s0,rnt , interference factors dmrn , frame number J and information about J
frames.
It is guaranteed that each user has at most one frame at each TTI.
Output
(k)
Output for a certain input is the optimization result of prnt (float), which has
(k)
R ⋅ K ⋅ T lines. Each line has N elements, corresponding to N users. prnt is the
(n + 1) -th element of line (1 + r + k ⋅ R + t ⋅ K ⋅ R) .
(k)
Note that the optimization result of brnt does not need to be output, because
(k) (k) (k) (k)
prnt > 0 and prnt = 0 means brnt = 1 and brnt = 0 , respectively.
Please note that if the outputs do not meet the constraint (4), it will be judged as an
incorrect answer and get score 0 . Besides, transmit on some TTIs out of time
window is valid, but usually results in a lower score due to resources waste.
Scoring
The goal is to maximize the number of successfully scheduled frames. When these
numbers are tied, we will compare who used less power. To achieve that,
Score = X − 10−6 × p , where X and p represent the number of successfully
scheduled frames and the total power used for transmission, respectively.
The total score for a submission is the sum of scores on each test.
Example
input Copy
2
2
2
1
1.3865 11.3865
1.3865 11.3865
2.3865 2.3865
2.3865 2.3865
0 -2
-2 0
0 -2
-2 0
2
0 250 0 0 2
1 25 1 0 2
output Copy
0.000000 0.004950
0.000000 0.004950
0.245039 0.000000
0.245039 0.000000
Note
Two sets of tests are prepared in this problem. For the duration of the competition,
each submission is tested on the preliminary set of tests. When the competition is
finished, for each contestant:
The jury takes the latest submission with non-zero score on preliminary tests;
This submission is tested on the final set of tests for the final rank;
The two sets of tests are generated from the same pool of data, based on the
real word data.
Supported by