题目
设 M 为作者的[实例压缩包][instance] 中 xLOLIB2/N-be75eec_500 文件给出的固定 500 × 500 非负整数矩阵,行、列下标均从零开始。源文件的第一个整数为 500,其余整数按行优先顺序给出矩阵元素。原始文件字节的 SHA-256 为 34e940a0ecd9c0a054dfa87c0ad4d2b9286ba141d98be1dcb7ce463fe3f22437。 验证器内嵌了这些字节,并在加载 M 时检查此摘要。
对于 0, …, 499 的一个排列 σ,定义
S(σ) = Σ_{0 ≤ a < b < 500} M[σ_a][σ_b].
找出使 S 最大的排列。得分就是这个精确的整数:将全部 500 × 499 / 2 = 124,750 个有序贡献项相加,不包含对角项,也不对 M 做转置。维数和权重由[原始实例][instance] 固定,不由证书提供。
每一对无序顶点贡献 M[i][j] 和 M[j][i] 中的一个。因此
S(σ) ≤ Σ_{i<j} max(M[i][j], M[j][i]) = 43,321,427.
这是从[实例][instance] 直接计算得到的逐对上界,并不表示它是已发表的最强上界或最优值。[公开基线排列][bks] 给出了下界 33,489,269。所引来源尚未确认针对该实例的最强已发表上界,也未确认最优性证明。
所有得分均为整数。在这个[固定实例][instance] 中,所有 i < j 对应的 M[i][j] − M[j][i] 的最大公约数为 1。交换相邻顶点只会改变这一对的贡献;任意排列都可通过相邻交换得到。因此,得分差不存在共同的、更粗的整数格点间隔。绝对 ε = 1 时,高于[基线][bks] 的下一个整数是 33,489,270,这是符合基线改进要求的最低得分。这并不表示恰好取得该分数的排列一定存在。
为什么重要
LOLIB 提供用于评估线性排序求解器的基准实例(见 [LOLIB 维护页面][lolib])。该实例收录于作者为 Ceberio、Mendiburu 和 Lozano 的论文 *The linear ordering problem revisited* 提供的 [EJOR 2015 配套仓库][ejor]。Lugo、Segura 和 Miranda 的 [MA-EDM 研究(2021 年首次提交)][paper-old],以及他们的[后续研究(2024 年首次提交)][paper-new],评估了 xLOLIB2 上对最好已知解的改进。作者将这些排列作为[可复用的基准数据][zenodo] 公开,因此,这个固定矩阵上的更优排列可以按这些研究采用的同一目标进行比较。
Few Shots 上的推进
从预设基线开始,每一行是一次经验证器复算的有效突破
- #033,489,269预设基线
- #1?等待挑战者
证书格式
- 文件:
certificate.json,为 UTF-8 编码的 JSON 对象,恰好包含键 order。例如,{"order":[0,1,2,...,499]} 仅展示结构;实际 JSON 文件中必须将省略号替换为中间的整数。 order 必须是一个数组,按排名顺序包含 0 到 499 的全部整数,每个恰好出现一次。布尔值、字符串、null、小数和指数形式的数字均不接受。整数记号最多含 3 位十进制数字,不计前导负号;负的顶点值无效。- 文件大小不超过 16 KiB(16,384 字节),包括空白。不允许重复的对象键、NaN、Infinity、字节顺序标记,或末尾的非空白数据。容器嵌套最多 2 层:外层对象为第 1 层,
order 数组为第 2 层。这些都是格式限制。 - 得分由 M 通过精确整数运算计算,并以十进制整数字符串返回,例如[基线][bks] 的得分为
"33489269"。 - 规范形式:解析并验证排列后,用原数组顺序构造对象
{"order":order}。将其序列化为 ASCII JSON,不含空白或末尾换行,键按字面写为 "order",每个顶点使用普通十进制整数写法,不带符号或前导零(零写为 0)。对这些确切字节计算 SHA-256,以小写十六进制摘要输出为 canonical_hash。等价写法为 json.dumps({"order": order}, sort_keys=True, separators=(",", ":"), ensure_ascii=True).encode("ascii")。 输入中的空白、键的转义写法,以及用 JSON -0 代替 0,均得到相同的规范形式。不进行反转、循环移位、求逆排列或重新标号:顶点标签和排名顺序固定,即使得分相同,不同排列也属于不同证书。
基线
S = 33,489,269。baseline/certificate.json 是作者[公开 BKS 压缩包][bks] 中 BKS/N-be75eec_500_26h 给出的从零开始编号的排列。对原始[矩阵元素][instance] 求和,可精确复现其中的 Cost: 33489269。[数据集][zenodo] 发表于 2025 年;[作者的说明][solution-permission] 将这些解与 *Future trends in the design of memetic algorithms: the case of the linear ordering problem*([论文][paper-new]、[期刊 DOI][journal])关联起来。该基线是公开的最好已知构造,并非已证明的最优解。
源排列文件的 SHA-256 为 53830fd93a01b4b262dc39bd779d7c632b26204825648dddfb97026909fe6ec5。 转换时移除 Solution: 和 Cost: 标签,将同样的 500 个顶点下标写入 JSON order 数组,不改变顺序或编号。其规范哈希为 6c9cf526e303289cb0305c009fc8cef35e05f385ae98418c2b071ab8c9ebcd48。
[较早的公开压缩包][old-bks] 包含 BKS/xLOLIB2/N-be75eec_500_9,标注为 Costo: 33464804;该排列在同一[矩阵][instance] 上可复现得分 33,464,804。它是历史测试用例,不是改进门槛。
矩阵是来自 Ceberio、Mendiburu 和 Lozano 的第三方数据。Josu Ceberio 的[许可][instance-permission] 写道:“可以自由使用这些实例。唯一条件是不得直接或间接用于商业目的。”他的[再分发确认][redistribution] 回应了在非商业基准中嵌入并公开分发此矩阵、包括提供饮品券奖励的[具体请求][permission-question]。原始许可摘录保存在 baseline/LICENSE-xLOLIB2.txt 中;内嵌矩阵继续遵守这些条款。
基线数据集署名 Carlos Segura、Gara Miranda 和 Lázaro Lugo,并由 [Zenodo 记录][zenodo] 指定采用 [Creative Commons 署名 4.0 国际许可协议][ccby]。baseline/LICENSE-Zenodo.txt 保留了来源署名、许可声明、作者许可、论文引用和 JSON 转换说明。基线保留 CC BY 4.0 许可,内嵌矩阵保留其单独的非商业使用许可;两者均未按仓库的 CC0 数据声明或 Apache-2.0 代码许可重新许可。
复现方法:
python3 problems/p017-lop-be75eec-500/verify/verify.py problems/p017-lop-be75eec-500/baseline
[instance]: https://raw.githubusercontent.com/sgpceurj/EJOR2015/master/xLOLIB2.zip [ejor]: https://github.com/sgpceurj/EJOR2015 [bks]: https://zenodo.org/api/records/14720629/files/BKS.zip/content [zenodo]: https://zenodo.org/records/14720629 [old-bks]: https://raw.githubusercontent.com/carlossegurag/LOP_MA-EDM/main/BKS.zip [paper-old]: https://arxiv.org/abs/2106.02696 [paper-new]: https://arxiv.org/abs/2405.08285 [journal]: https://doi.org/10.1007/s00521-025-11171-z [lolib]: https://www.uv.es/rmarti/paper/lop.html [ccby]: https://creativecommons.org/licenses/by/4.0/ [instance-permission]: https://github.com/sgpceurj/EJOR2015/issues/1#issuecomment-6598375344 [permission-question]: https://github.com/sgpceurj/EJOR2015/issues/1#issuecomment-6602047593 [redistribution]: https://github.com/sgpceurj/EJOR2015/issues/1#issuecomment-6625409953 [solution-permission]: https://github.com/carlossegurag/LOP_MA-EDM/issues/1#issuecomment-6621567958
Problem
Let M be the fixed 500 × 500 non-negative integer matrix in the member xLOLIB2/N-be75eec_500 of the authors' [instance archive][instance], with zero-based row and column indices. The first integer in the source file is 500; the remaining integers are the matrix entries in row-major order. The SHA-256 of the original file bytes is 34e940a0ecd9c0a054dfa87c0ad4d2b9286ba141d98be1dcb7ce463fe3f22437. The verifier embeds those bytes and checks this digest when loading M.
For a permutation σ of 0, …, 499, define
S(σ) = Σ_{0 ≤ a < b < 500} M[σ_a][σ_b].
Find a permutation maximising S. The score is this exact integer: all 500 × 499 / 2 = 124,750 ordered contributions are summed, with no diagonal terms and no transposition of M. The dimensions and weights are fixed by the [original instance][instance], not supplied in a certificate.
Each unordered vertex pair contributes one of M[i][j] and M[j][i]. Thus
S(σ) ≤ Σ_{i<j} max(M[i][j], M[j][i]) = 43,321,427.
This is a directly computable pairwise upper bound from the [instance][instance], not a claim about the strongest published bound or the optimum. The [public baseline permutation][bks] establishes the lower bound 33,489,269. A strongest published instance-specific upper bound and an optimality proof are unconfirmed in the cited sources.
All scores are integers. The gcd of M[i][j] − M[j][i] over i < j in the [fixed instance][instance] is 1. Swapping adjacent vertices changes only that pair's contribution; every permutation can be reached by adjacent swaps. There is therefore no common coarser integer lattice for score differences. With absolute ε = 1, the next integer above the [baseline][bks] is 33,489,270, the minimum score qualifying as an improvement on that baseline. This does not assert that a permutation of exactly that score exists.
Why it matters
LOLIB supplies benchmark instances used to evaluate linear ordering solvers ([LOLIB maintained page][lolib]). This instance is distributed in the authors' [EJOR 2015 companion repository][ejor] for Ceberio, Mendiburu and Lozano, *The linear ordering problem revisited*. Lugo, Segura and Miranda's [MA-EDM study, first submitted in 2021][paper-old], and their [later study, first submitted in 2024][paper-new], evaluate improvements to best-known solutions on xLOLIB2. The authors publish the permutations as [reusable benchmark data][zenodo], so a better permutation on this fixed matrix can be compared under the same objective used in those studies.
Progress on Few Shots
From the preset baseline, one row per valid breakthrough recomputed by the verifier
- #033,489,269Preset baseline
- #1?Awaiting a challenger
Certificate
- File:
certificate.json, a UTF-8 JSON object with exactly the key order. For example, {"order":[0,1,2,...,499]} illustrates the shape; the ellipsis must be replaced by the intervening integers in an actual JSON file. order must be an array containing every integer from 0 through 499 exactly once, in ranking order. Booleans, strings, null, fractional numbers and exponent-form numbers are rejected. Integer tokens have at most 3 decimal digits, excluding a leading minus sign; negative vertex values are invalid.- The file is at most 16 KiB (16,384 bytes), including whitespace. It has no duplicate object keys, NaN, Infinity, byte-order mark or trailing non-whitespace data. Container nesting is at most 2 levels, counting the outer object as level 1 and the
order array as level 2. These are format limits. - The score is computed from M in exact integer arithmetic and returned as a decimal integer string, such as
"33489269" for the [baseline][bks]. - Canonical form: after parsing and validating the permutation, form the object
{"order":order} with that same array order. Serialize it as ASCII JSON with no whitespace or final newline, the literal key "order", and each vertex as its ordinary base-10 integer spelling, without a sign or leading zeros (zero is 0). Hash precisely those bytes with SHA-256; output the lowercase hexadecimal digest as canonical_hash. Equivalently, use json.dumps({"order": order}, sort_keys=True, separators=(",", ":"), ensure_ascii=True).encode("ascii"). Input whitespace, escaped spellings of the key, and JSON -0 in place of 0 have the same canonical form. No reversal, rotation, inversion or relabelling is applied: the vertex labels and ranking order are fixed, and different permutations are different certificates even if their scores coincide.
Baseline
S = 33,489,269. baseline/certificate.json is the zero-based permutation in BKS/N-be75eec_500_26h from the authors' [public BKS archive][bks], whose Cost: 33489269 is reproduced exactly by summing the original [matrix entries][instance]. The [dataset][zenodo] was published in 2025; the [author's explanation][solution-permission] associates these solutions with *Future trends in the design of memetic algorithms: the case of the linear ordering problem* ([paper][paper-new], [journal DOI][journal]). The baseline is a public best-known construction, not a proved optimum.
The source permutation file has SHA-256 53830fd93a01b4b262dc39bd779d7c632b26204825648dddfb97026909fe6ec5. Conversion removes the Solution: and Cost: labels and writes the same 500 vertex indices as the JSON order array, without changing their order or numbering. Its canonical hash is 6c9cf526e303289cb0305c009fc8cef35e05f385ae98418c2b071ab8c9ebcd48.
The [earlier public archive][old-bks] contains BKS/xLOLIB2/N-be75eec_500_9, with Costo: 33464804; its permutation reproduces 33,464,804 on the same [matrix][instance]. It is a historical test case, not the improvement threshold.
The matrix is third-party data from Ceberio, Mendiburu and Lozano. Josu Ceberio's [permission][instance-permission] states: “Feel free to use the instances. The only condition is not to use them directly or indirectly for commercial purposes.” His [redistribution confirmation][redistribution] answers the [specific request][permission-question] to embed and publicly distribute this matrix in the non-commercial benchmark, including drink voucher rewards. The original permission excerpts are preserved in baseline/LICENSE-xLOLIB2.txt; the embedded matrix retains these terms.
The baseline dataset credits Carlos Segura, Gara Miranda and Lázaro Lugo and is licensed under [Creative Commons Attribution 4.0 International][ccby] by the [Zenodo record][zenodo]. baseline/LICENSE-Zenodo.txt preserves the source attribution, licence notice, author permission, paper citations and JSON conversion description. The baseline retains CC BY 4.0, and the embedded matrix retains its separate non-commercial permission; neither is relicensed under the repository's CC0 data declaration or Apache-2.0 code licence.
To reproduce:
python3 problems/p017-lop-be75eec-500/verify/verify.py problems/p017-lop-be75eec-500/baseline
[instance]: https://raw.githubusercontent.com/sgpceurj/EJOR2015/master/xLOLIB2.zip [ejor]: https://github.com/sgpceurj/EJOR2015 [bks]: https://zenodo.org/api/records/14720629/files/BKS.zip/content [zenodo]: https://zenodo.org/records/14720629 [old-bks]: https://raw.githubusercontent.com/carlossegurag/LOP_MA-EDM/main/BKS.zip [paper-old]: https://arxiv.org/abs/2106.02696 [paper-new]: https://arxiv.org/abs/2405.08285 [journal]: https://doi.org/10.1007/s00521-025-11171-z [lolib]: https://www.uv.es/rmarti/paper/lop.html [ccby]: https://creativecommons.org/licenses/by/4.0/ [instance-permission]: https://github.com/sgpceurj/EJOR2015/issues/1#issuecomment-6598375344 [permission-question]: https://github.com/sgpceurj/EJOR2015/issues/1#issuecomment-6602047593 [redistribution]: https://github.com/sgpceurj/EJOR2015/issues/1#issuecomment-6625409953 [solution-permission]: https://github.com/carlossegurag/LOP_MA-EDM/issues/1#issuecomment-6621567958