Problem - A - Codeforces

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

|

Awei2222 | Logout

PROBLEMS SUBMIT CODE MY SUBMISSIONS STATUS STANDINGS CUSTOM INVOCATION

A. Deterministic Scheduling for Extended Reality over


5G and Beyond
time limit per test: 2 seconds
memory limit per test: 1024 megabytes
input: standard input
output: standard output

Background

Extended reality (XR) service is a promising application for future communications.


In wireless communications, XR data are transmitted over radio between base
stations and mobile terminals. A region is usually divided into multiple cells, each
of which is equipped with a base station to serve users. One base station usually
serves multiple users, and multiple base stations may serve one user at the same
time.

Task

The task of this competition is to design a scheduling algorithm for XR service. By


properly allocating radio resources, we want to maximize the number of XR data
frames that are successfully transmitted. A diagram is provided below for
illustration: The transmission of a data frame is failed when it cannot be completely
transmitted during the permitted transmission time window.

Therefore, the objective of this task can be modeled as:

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.

To achieve better user experience, scheduling algorithm should be proposed to


efficiently assign the limited radio resources:

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.

Summarily, two optimization variables are introduced to represent the scheduling


result:

(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.

Finally, we give the expression of SINR, which may be complicated but


corresponds to the actual physical transmission:

⎛ ⎞
1
(k)
∑r b rnt

= ⎜ ∏ srnt ⎟
(k) (k)
(6)
⎝r,b(k) =1 ⎠
snt
rnt

(k) (k) (k) (k)


dmrn ×brmt
(k) s0,rnt × prnt × ∏m≠n e
srnt = ′ ′ (k ′ )
(7)
(k ) (k ) −dn′rn
1+ ∑k′ ≠k,n′ ≠n s0,rnt × prn′ t ×e

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.

The details are as follows:

Line 1 : User number N , integer, 1 ≤ N ≤ 100 . Users are numbered from 0 to


N − 1.
Line 2 : Cell number K , integer, 1 ≤ K ≤ 10 . Cells are numbered from 0 to
K − 1.
Line 3 : TTI number T , integer, 1 ≤ T ≤ 1000. TTIs are numbered from 0 to
T − 1.
Line 4 : RBG number R , integer, 1 ≤ R ≤ 10 . RBGs are numbered from 0 to
R − 1.
(k) (k)
Line 5 to (4 + R ⋅ K ⋅ T ) : Initial SINRs s0,rnt , float, 0 < s0,rnt < 10 000.
(k)
Each line has N elements, corresponding to N users. s0,rnt is the (n + 1) -th
element of line (5 + r + k ⋅ R + t ⋅ K ⋅ R) .
Line (5 + R ⋅ K ⋅ T ) to (4 + R ⋅ K ⋅ T + N ⋅ R ⋅ K): Interference factors
(k) (k)
dmrn , float, −2 ≤ dmrn ≤ 0 . Each line has N elements, corresponding to N
(k)
users. dmrn is the (n + 1) -th element of line
(5 + R ⋅ K ⋅ T + m + r ⋅ N + k ⋅ R ⋅ N).
Line (5 + R ⋅ K ⋅ T + N ⋅ R ⋅ K): Frame number J , integer, 1 ≤ J ≤ 5000 .
Last J lines: Frame information. Each line contains 5 integers corresponding to
a frame, which are, in order: frame ID j ∈ {0, … , J − 1} in increasing order,
size T BSj (0 < T BSj ≤ 100 000), user ID it belongs to, first TTI
t0,j ∈ {0, … , T − 1} , and number of TTIs td,j ∈ [1, 100] . Last TTI for frame
j can be found as t1,j = t0,j + td,j − 1 ; it is guaranteed that t1,j ≤ T − 1.

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.

Codeforces (c) Copyright 2010-2023 Mike Mirzayanov


The only programming contests Web 2.0 platform
Server time: Nov/21/2023 18:15:41 (g2). UTC+8

Mobile version, switch to desktop version.


Privacy Policy

Supported by

You might also like