CF1885A.Deterministic Scheduling for Extended Reality over 5G and Beyond
普及/提高-
通过率:0%
时间限制:2.00s
内存限制:1024MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
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: $$ \mathcal{P}: \max \sum_j f_j \tag{1} $$ $$ f_j=\left\{\begin{array}{c} 1, g_j \geq T B S_j \\ 0, g_j \lt T B S_j \end{array}\right. \tag{2} $$ 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., TBSj (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.5ms.
- 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: $$ b_{r n t}^{(k)} \in\{0,1\} \tag{3} $$ $$ p_{ {rnt }}^{(k)} \geq 0 , \quad \sum_r \sum_n p_{ {rnt }}^{(k)} \leq R, \quad \sum_n p_{ {rnt }}^{(k)} \leq 4 \tag{4} $$ Here, brnt(k) is a Boolean variable denoting whether the r-th RBG of cell k is allocated to user n at TTI t, and prnt(k) 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:
g\_{j}= W\\times \\sum\_{t=t\_{0, j}}^{t\_{1, j}} \\sum\_k \\sum\_r b\_{r n t}^{(k)} \\times \\log \_2\\left(1+s\_{n t}^{(k)}\\right). \\tag{5} $$ Note that $W\times \mathrm{log}_2 (1+s_{nt}^{(k)} ) $ is the well-known Shannon formula, which represents the transmitted data volume, where $s_{nt}^{(k)}$ 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. $t_{0,j}$ and $t_{1,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, $t_{0,j}\sim t_{1,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: $$ s\_{nt}^{\\left( k \\right)} = {\\left( {\\prod\\limits\_{r,b\_{rnt}^{\\left( k \\right)} = 1} {s\_{rnt}^{\\left( k \\right)}} } \\right)^{\\frac{1}{{\\sum\\nolimits\_r {b\_{rnt}^{\\left( k \\right)}} }}}} \\tag{6} $$ $$ s\_{r n t}^{(k)}=\\frac{s\_{0, r n t}^{(k)} \\times p\_{r n t}^{(k)} \\times \\prod\_{m \\neq n} e^{d^{(k)}\_{mrn} \\times b\_{r m t}^{(k)}}}{1+\\sum\_{k^{\\prime} \\neq k, n^{\\prime} \\neq n} s\_{0, r n t}^{(k^{\\prime})} \\times p\_{r n^{\\prime} t}^{\\left(k^{\\prime}\\right)} \\times e^{-d^{(k^{\\prime})}\_{n^{\\prime}rn}}} \\tag{7}Formula (6) shows the computation of user-level effective SINR: the transmission SINR of user n, i.e., snt(k), is the geometric mean of the SINRs of scheduled RBGs. Then, formula (7) shows the computation of RBG-level effective SINR. s0,rnt(k) is a given constant denoting the initial SINR on RBG r of cell k at TTI t, which indicates the quality of the channel. Another given constant value dmrn(k) represents the interference factor between user m and user n on RBG r, when user m is scheduled on cell k. Note that dmrn(k)=dnrm(k)≤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.
背景
扩展现实(XR)服务是未来通信中极具前景的应用之一。在无线通信中,XR 数据通过基站与移动终端之间的无线信道进行传输。一个区域通常被划分为多个小区,每个小区配备一个基站为用户服务。一个基站通常同时为多个用户服务,而一个用户也可能同时由多个基站服务。
任务
本次竞赛的任务是为 XR 服务设计一种调度算法。通过合理分配无线资源,目标是最大化成功传输的 XR 数据帧数量。下图用于示意说明:当数据帧无法在允许的传输时间窗口内完成全部传输时,该次传输即视为失败。

因此,本任务的目标可建模为:
P:maxj∑fj(1)
fj={1,gj≥TBSj0,gj<TBSj(2)
其中,fj 表示第 j 个数据帧的传输结果:当实际传输比特数 gj(由式 (5) 计算得出)不小于该帧大小(即传输块大小 TBSj)时,该帧被成功传输,故 fj=1;否则 fj=0。
为提升用户体验,需提出一种调度算法,以高效分配有限的无线资源:
- 时域资源:划分为若干传输时间间隔(TTI),每个 TTI 对应 0.5 ms 的传输时间;
- 频域资源:划分为若干资源块组(Resource Block Group, RBG),每个 RBG 对应 5760 kHz 的传输带宽;
- 功率域资源:每个小区具有固定的最大发射功率用于服务用户。
综上,引入两个优化变量来表示调度结果:
brnt(k)∈{0,1}(3)
prnt(k)≥0,r∑n∑prnt(k)≤R,n∑prnt(k)≤4(4)
其中,brnt(k) 是一个布尔变量,表示在第 t 个 TTI 内,第 k 个小区的第 r 个 RBG 是否分配给第 n 个用户;prnt(k) 是一个非负连续变量,表示在第 t 个 TTI 内,第 k 个小区的第 r 个 RBG 分配给第 n 个用户的发射功率。对每个小区的每个 TTI,每个 RBG 的功率取值范围为 [0,4],且所有 RBG 的总功率之和不得超过 R。
当无线资源被分配给用户后,即可为其提供 XR 数据传输服务。假设第 j 个数据帧属于第 n 个用户,则该帧的实际传输比特数 gj 可表示为:
gj=W×t=t0,j∑t1,jk∑r∑brnt(k)×log2(1+snt(k)).(5)
注意,$W\times \log_2 (1+s_{nt}^{(k)} ) $ 是经典的香农公式,表示传输的数据量,其中 snt(k) 表示第 n 个用户在第 k 个小区、第 t 个 TTI 的传输 SINR(信号与干扰加噪声比),W=192 是单个 RBG 所含可用频域资源单元(resource element)的固定数目。t0,j 和 t1,j 分别表示第 j 个数据帧的起始 TTI 和终止 TTI。式 (5) 的物理含义是:在有效时间区间 t0,j∼t1,j 内传输的比特数,将被计入第 j 个数据帧的有效传输比特数。
最后,给出 SINR 的表达式。该式虽较复杂,但符合实际物理传输过程:
snt(k)=r,brnt(k)=1∏srnt(k)∑rbrnt(k)1(6)
srnt(k)=1+∑k′=k,n′=ns0,rnt(k′)×prn′t(k′)×e−dn′rn(k′)s0,rnt(k)×prnt(k)×∏m=nedmrn(k)×brmt(k)(7)
式 (6) 给出用户级有效 SINR 的计算方法:用户 n 的传输 SINR snt(k) 等于其被调度的所有 RBG 对应 SINR 的几何平均值。式 (7) 则给出 RBG 级有效 SINR 的计算方法。其中,s0,rnt(k) 是一个给定常数,表示第 k 个小区在第 t 个 TTI 下第 r 个 RBG 上的初始 SINR,反映信道质量;另一给定常数 dmrn(k) 表示当用户 m 被调度至第 k 个小区时,其对用户 n 在第 r 个 RBG 上的干扰因子。注意 dmrn(k)=dnrm(k)≤0,表明在同一 RBG-TTI 资源上调度多个用户,将导致各用户 SINR 下降。
综上,参赛者需寻找一种高效的无线资源分配方案,以使尽可能多的 XR 数据帧成功传输。
输入格式
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 SINRs s0,rnt(k), 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.
- Line 5 to (4+R⋅K⋅T): Initial SINRs s0,rnt(k), float, 0<s0,rnt(k)<10000. Each line has N elements, corresponding to N users. s0,rnt(k) 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 dmrn(k), float, −2≤dmrn(k)≤0. Each line has N elements, corresponding to N users. dmrn(k) 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 TBSj (0<TBSj≤100000), 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.
单个测试用例的输入共包含 (4+R⋅K⋅T+N⋅R⋅K+1+J) 行,其中包含用户数 N、小区数 K、TTI 数 T、RBG 数 R、初始 SINR 值 s0,rnt(k)、干扰因子 dmrn、帧数 J,以及关于 J 个帧的信息。
具体格式如下:
- 第 1 行:用户数 N,整数,满足 1≤N≤100。用户编号为 0 至 N−1。
- 第 2 行:小区数 K,整数,满足 1≤K≤10。小区编号为 0 至 K−1。
- 第 3 行:TTI 数 T,整数,满足 1≤T≤1000。TTI 编号为 0 至 T−1。
- 第 4 行:RBG 数 R,整数,满足 1≤R≤10。RBG 编号为 0 至 R−1。
- 第 5 行至第 (4+R⋅K⋅T) 行:初始 SINR 值 s0,rnt(k),浮点数,满足 0<s0,rnt(k)<10000。每行含 N 个元素,分别对应 N 个用户。s0,rnt(k) 是第 (5+r+k⋅R+t⋅K⋅R) 行的第 (n+1) 个元素。
- 第 (5+R⋅K⋅T) 行至第 (4+R⋅K⋅T+N⋅R⋅K) 行:干扰因子 dmrn(k),浮点数,满足 −2≤dmrn(k)≤0。每行含 N 个元素,分别对应 N 个用户。dmrn(k) 是第 (5+R⋅K⋅T+m+r⋅N+k⋅R⋅N) 行的第 (n+1) 个元素。
- 第 (5+R⋅K⋅T+N⋅R⋅K) 行:帧数 J,整数,满足 1≤J≤5000。
- 最后 J 行:帧信息。每行含 5 个整数,依次表示一个帧的以下属性:帧 ID j∈0,…,J−1(按升序排列)、传输块大小 TBSj(满足 0<TBSj≤100000)、所属用户 ID、起始 TTI t0,j∈0,…,T−1、TTI 数量 td,j∈[1,100]。帧 j 的终止 TTI 为 t1,j=t0,j+td,j−1;保证 t1,j≤T−1。
保证每个用户在每个 TTI 上至多拥有一个帧。
输出格式
Output for a certain input is the optimization result of prnt(k) (float), which has R⋅K⋅T lines. Each line has N elements, corresponding to N users. prnt(k) is the (n+1)-th element of line (1+r+k⋅R+t⋅K⋅R).
Note that the optimization result of brnt(k) does not need to be output, because prnt(k)>0 and prnt(k)=0 means brnt(k)=1 and brnt(k)=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.
对于某一输入,输出为 prnt(k)(浮点数)的优化结果,共 R⋅K⋅T 行。每行包含 N 个元素,分别对应 N 个用户。prnt(k) 是第 (1+r+k⋅R+t⋅K⋅R) 行的第 (n+1) 个元素。
注意:无需输出 brnt(k) 的优化结果,因为当 prnt(k)>0 时,有 brnt(k)=1;而当 prnt(k)=0 时,有 brnt(k)=0。
请注意:若输出不满足约束条件 (4),将被判为错误答案,得分为 0。此外,在时间窗口之外的某些 TTI 上进行传输是允许的,但通常会因资源浪费而导致得分降低。
输入输出样例
输入#1
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
输出#1
0.000000 0.004950 0.000000 0.004950 0.245039 0.000000 0.245039 0.000000
说明/提示
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.
本题准备了两组测试数据。在比赛期间,每次提交将仅在预测试数据集上进行测试。当比赛结束后,对每位参赛者:
- 评委会选取其在预测试数据集中得分非零的最新一次提交;
- 该提交将在最终测试数据集上进行测试,以确定最终排名;
这两组测试数据均基于真实世界数据,从同一数据池中生成。
输入解题思路,AI测评打分。不知道怎么写?