Datasets:
Release Frontier-CS 1.1 algorithmic dataset
Browse files- LICENSE +17 -0
- LICENSE-MIT +21 -0
- README.md +186 -0
- data/test.parquet +3 -0
- metadata/files.jsonl +0 -0
- metadata/provenance.json +60 -0
- problems.tar.gz +3 -0
LICENSE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Frontier-CS 1.1 (FCS1.1): Algorithmic Problems
|
| 2 |
+
|
| 3 |
+
This dataset release is licensed under the Creative Commons Attribution 4.0
|
| 4 |
+
International License (CC BY 4.0), except for upstream material that retains
|
| 5 |
+
its original license as described below.
|
| 6 |
+
|
| 7 |
+
License: https://creativecommons.org/licenses/by/4.0/
|
| 8 |
+
Full legal code: https://creativecommons.org/licenses/by/4.0/legalcode
|
| 9 |
+
|
| 10 |
+
Original files from the Frontier-CS repository retain their MIT License.
|
| 11 |
+
The original copyright notice and full MIT license are included in LICENSE-MIT.
|
| 12 |
+
The CC BY 4.0 dataset license does not replace those original terms.
|
| 13 |
+
|
| 14 |
+
Source: https://github.com/FrontierCS/Frontier-CS
|
| 15 |
+
Attribution: FrontierCS authors and contributors.
|
| 16 |
+
This release packages the source problem bank as a Hugging Face dataset;
|
| 17 |
+
original problem file contents are unchanged.
|
LICENSE-MIT
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2025 FrontierCS Team
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: Frontier-CS 1.1 (FCS1.1) Algorithmic
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
license: cc-by-4.0
|
| 6 |
+
task_categories:
|
| 7 |
+
- text-generation
|
| 8 |
+
size_categories:
|
| 9 |
+
- n<1K
|
| 10 |
+
tags:
|
| 11 |
+
- benchmark
|
| 12 |
+
- code
|
| 13 |
+
- algorithms
|
| 14 |
+
- optimization
|
| 15 |
+
- interactive-problems
|
| 16 |
+
- computer-science
|
| 17 |
+
configs:
|
| 18 |
+
- config_name: default
|
| 19 |
+
data_files:
|
| 20 |
+
- split: test
|
| 21 |
+
path: data/test.parquet
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# Frontier-CS 1.1 (FCS1.1): Algorithmic Problems
|
| 25 |
+
|
| 26 |
+
This is the algorithmic problem dataset for **Frontier-CS 1.1 (FCS1.1)**.
|
| 27 |
+
It packages **180 algorithmic problems** from the
|
| 28 |
+
[Frontier-CS repository](https://github.com/FrontierCS/Frontier-CS), including
|
| 29 |
+
their original statements, evaluation configurations, checkers or interactors,
|
| 30 |
+
and released test data. The problems cover challenging algorithm design and
|
| 31 |
+
optimization tasks, with task-specific evaluation and scoring.
|
| 32 |
+
|
| 33 |
+
The dataset contains **107 `default` problems** and **73 `interactive` problems**.
|
| 34 |
+
The source problems are available in the repository's
|
| 35 |
+
[`algorithmic/problems`](https://github.com/FrontierCS/Frontier-CS/tree/main/algorithmic/problems)
|
| 36 |
+
directory.
|
| 37 |
+
|
| 38 |
+
## Load the problem table
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
from datasets import load_dataset
|
| 42 |
+
|
| 43 |
+
problems = load_dataset("FrontierCS2/FrontierCS-v1.1", split="test")
|
| 44 |
+
print(len(problems)) # 180
|
| 45 |
+
print(problems[0]["problem_id"]) # "0"
|
| 46 |
+
print(problems[0]["statement"])
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
There is one row per problem, sorted by numeric problem ID. IDs are stored as
|
| 50 |
+
strings and are not consecutive. The single `test` split is a packaging choice
|
| 51 |
+
for benchmark use, not a train/test partition provided by the upstream project.
|
| 52 |
+
All bundled test files are already public in the source repository.
|
| 53 |
+
|
| 54 |
+
## Data fields
|
| 55 |
+
|
| 56 |
+
| Field | Type | Description |
|
| 57 |
+
| --- | --- | --- |
|
| 58 |
+
| `problem_id` | string | Original problem directory name. |
|
| 59 |
+
| `statement` | string | Complete, unchanged UTF-8 content of `statement.txt`. |
|
| 60 |
+
| `type` | string | `default` or `interactive`, copied from `config.yaml`. |
|
| 61 |
+
| `time_limit` | string | Solution time limit in the source notation, such as `2s`. |
|
| 62 |
+
| `memory_limit` | string | Solution memory limit in the source notation, such as `256m`. |
|
| 63 |
+
| `config_yaml` | string | Complete, unchanged evaluation configuration. |
|
| 64 |
+
| `checker_file` | string or null | Value of the source `checker` key, when present. |
|
| 65 |
+
| `interactor_file` | string or null | Value of the source `interactor` key, when present. |
|
| 66 |
+
| `num_test_inputs` | int64 | Number of `testdata/*.in` files. |
|
| 67 |
+
| `num_test_answers` | int64 | Number of `testdata/*.ans` files. |
|
| 68 |
+
| `archive_path` | string | `problems.tar.gz`, the single archive containing all 180 problems. |
|
| 69 |
+
| `source_url` | string | Source problem directory URL recorded during packaging. |
|
| 70 |
+
| `source_commit` | string | Source Git commit recorded for data provenance. |
|
| 71 |
+
|
| 72 |
+
The two filename fields expose the original YAML keys without reinterpretation.
|
| 73 |
+
For evaluation, use the full configuration and the upstream runner.
|
| 74 |
+
|
| 75 |
+
## Full problem files
|
| 76 |
+
|
| 77 |
+
The single archive [`problems.tar.gz`](resolve/main/problems.tar.gz) contains
|
| 78 |
+
all 180 problems and every tracked file from their source directories,
|
| 79 |
+
including test data, checkers or interactors, supplied examples, generators,
|
| 80 |
+
and other auxiliary files. Archive members retain paths under
|
| 81 |
+
`algorithmic/problems/<problem_id>/`.
|
| 82 |
+
|
| 83 |
+
```python
|
| 84 |
+
from huggingface_hub import hf_hub_download
|
| 85 |
+
|
| 86 |
+
archive = hf_hub_download(
|
| 87 |
+
repo_id="FrontierCS2/FrontierCS-v1.1",
|
| 88 |
+
repo_type="dataset",
|
| 89 |
+
filename="problems.tar.gz",
|
| 90 |
+
)
|
| 91 |
+
print(archive)
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
To extract all problems with Python 3.12 or later:
|
| 95 |
+
|
| 96 |
+
```python
|
| 97 |
+
import tarfile
|
| 98 |
+
|
| 99 |
+
with tarfile.open(archive, "r:gz") as bundle:
|
| 100 |
+
bundle.extractall("frontiercs-data", filter="data")
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
The Parquet table contains statements and metadata. Download `problems.tar.gz`
|
| 104 |
+
once to obtain the complete problem bank. Loading the table alone does not
|
| 105 |
+
download the archive.
|
| 106 |
+
|
| 107 |
+
```text
|
| 108 |
+
README.md
|
| 109 |
+
LICENSE
|
| 110 |
+
LICENSE-MIT
|
| 111 |
+
data/test.parquet
|
| 112 |
+
problems.tar.gz
|
| 113 |
+
metadata/files.jsonl
|
| 114 |
+
metadata/provenance.json
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
`metadata/files.jsonl` lists the original path, byte size, and SHA-256 of all
|
| 118 |
+
12,299 source files. `metadata/provenance.json` records packaging provenance,
|
| 119 |
+
dataset statistics, and archive checksums.
|
| 120 |
+
The source directories contain 5,861 `.in` files and 5,861 `.ans` files;
|
| 121 |
+
other auxiliary files are also retained.
|
| 122 |
+
|
| 123 |
+
## Evaluation
|
| 124 |
+
|
| 125 |
+
Use this dataset to browse tasks, construct prompts, and retrieve the released
|
| 126 |
+
problem assets. Evaluation requires the
|
| 127 |
+
[Frontier-CS evaluation software](https://github.com/FrontierCS/Frontier-CS/tree/main)
|
| 128 |
+
and its documented runtime dependencies; the archive alone is not a complete
|
| 129 |
+
judge installation. Follow the installation and evaluation instructions in the
|
| 130 |
+
upstream repository.
|
| 131 |
+
|
| 132 |
+
For example, after installing the upstream project and configuring its judge:
|
| 133 |
+
|
| 134 |
+
```bash
|
| 135 |
+
frontier eval algorithmic 0 solution.cpp
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
Interactive problems require the provided interaction protocol and interactor.
|
| 139 |
+
Scoring is problem-specific: consult each statement, configuration, and checker
|
| 140 |
+
or interactor. Test answer files are evaluation assets, not a collection of
|
| 141 |
+
canonical solution programs. Example solutions are included only where they
|
| 142 |
+
exist in the source directory.
|
| 143 |
+
|
| 144 |
+
## Benchmark use
|
| 145 |
+
|
| 146 |
+
Because the problems and evaluation assets are public, benchmark results should
|
| 147 |
+
describe any use of these materials for training, tuning, or iterative feedback.
|
| 148 |
+
This release does not introduce a hidden evaluation set or new reference scores.
|
| 149 |
+
|
| 150 |
+
## License
|
| 151 |
+
|
| 152 |
+
The results, patches and traces are released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Code from the upstream research artifacts that appears inside patches or traces stays under its own license.
|
| 153 |
+
|
| 154 |
+
## Citation
|
| 155 |
+
|
| 156 |
+
```bibtex
|
| 157 |
+
@misc{mang2026frontiercs2,
|
| 158 |
+
title = {{FrontierCS} 2: A Benchmark for Computer Science {R\&D}},
|
| 159 |
+
author = {Qiuyang Mang and Wenhao Chai and Runyuan He and Dongruixuan Li and Zihan Zheng and
|
| 160 |
+
Yujun He and Xuanyi Zhou and Hao Wang and Siddhant Ray and Bo Peng and Ruyi Ji and
|
| 161 |
+
Shuo Yang and Haocheng Xi and Boru Chen and Xinyang David Han and Melissa Pan and
|
| 162 |
+
Mayank Mishra and Boxi Yu and Sijia Liu and Kerem Akillioglu and Yi Pan and
|
| 163 |
+
Zirui Wang and Mert Cemri and Diogo Antunes and Yichuan Wang and
|
| 164 |
+
Aiwei Ivy Zhang and Zhenyang Chen and Qizheng Zhang and Kaiyuan Liu and
|
| 165 |
+
Wenyuan Huang and Sherry Ruan and Shu Liu and Dacheng Li and Zerui Cheng and
|
| 166 |
+
Zeyu Shen and Shang Zhou and Hanfei Chen and Yuzhong Zhang and Bohan Lyu and
|
| 167 |
+
Qu Ao and Han Zheng and Chonghe Jiang and Jingzhuo Hu and Xiaokun Chen and
|
| 168 |
+
Kunjun Li and Zhiqing Zhong and Haoye Tian and Tong Zhao and Yunzhong He and
|
| 169 |
+
Hanchen Li and Ofir Press and Jiantao Jiao and Kunle Olukotun and
|
| 170 |
+
Karthik R. Narasimhan and Jingbo Shang and Koushik Sen and Matei Zaharia and
|
| 171 |
+
Alex Dimakis and Ion Stoica and Joseph E. Gonzalez and Alvin Cheung},
|
| 172 |
+
year = {2026},
|
| 173 |
+
url = {https://frontier-cs.org/}
|
| 174 |
+
}
|
| 175 |
+
```
|
| 176 |
+
|
| 177 |
+
and FrontierCS:
|
| 178 |
+
|
| 179 |
+
```bibtex
|
| 180 |
+
@inproceedings{mang2026frontiercs,
|
| 181 |
+
title = {{FrontierCS}: Evolving Challenges for Evolving Intelligence},
|
| 182 |
+
author = {Mang, Qiuyang and Chai, Wenhao and Li, Zhifei and others},
|
| 183 |
+
booktitle = {Proceedings of the International Conference on Machine Learning},
|
| 184 |
+
year = {2026}
|
| 185 |
+
}
|
| 186 |
+
```
|
data/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f951654612df3f59dddce619ef3e4b7259a94254463a894a99d71524cd51cc0
|
| 3 |
+
size 236791
|
metadata/files.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
metadata/provenance.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source_repository": "https://github.com/FrontierCS/Frontier-CS",
|
| 3 |
+
"source_commit": "aec2aff05f3ece1b150c7c40827b0cea449e0b28",
|
| 4 |
+
"source_directory": "algorithmic/problems",
|
| 5 |
+
"dataset_id": "FrontierCS2/FrontierCS-v1.1",
|
| 6 |
+
"split": "test",
|
| 7 |
+
"num_problems": 180,
|
| 8 |
+
"problem_types": {
|
| 9 |
+
"default": 107,
|
| 10 |
+
"interactive": 73
|
| 11 |
+
},
|
| 12 |
+
"num_source_files": 12299,
|
| 13 |
+
"source_bytes": 2177792752,
|
| 14 |
+
"num_test_inputs": 5861,
|
| 15 |
+
"num_test_answers": 5861,
|
| 16 |
+
"archive_bytes": 633682478,
|
| 17 |
+
"missing_image_references": [
|
| 18 |
+
{
|
| 19 |
+
"problem_id": "147",
|
| 20 |
+
"reference": "./images/dbec47df66576ff9e5b5ace9df6d9110.png"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"problem_id": "151",
|
| 24 |
+
"reference": "./images/1bc7c896310a65486d0ce3aa275f41b7.png"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"problem_id": "157",
|
| 28 |
+
"reference": "./images/example.gif"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"problem_id": "159",
|
| 32 |
+
"reference": "./images/example.gif"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"problem_id": "160",
|
| 36 |
+
"reference": "./images/b639c75d_2.png"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"problem_id": "160",
|
| 40 |
+
"reference": "./images/b639c75d_3.png"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"problem_id": "160",
|
| 44 |
+
"reference": "./images/b639c75d_4.png"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"problem_id": "160",
|
| 48 |
+
"reference": "./images/b639c75d_5.png"
|
| 49 |
+
}
|
| 50 |
+
],
|
| 51 |
+
"archives": [
|
| 52 |
+
{
|
| 53 |
+
"path": "problems.tar.gz",
|
| 54 |
+
"size_bytes": 633682478,
|
| 55 |
+
"sha256": "362154c9ea64e3356859a4586911fe8587cc9f8a4520316038e222452931ce64",
|
| 56 |
+
"num_files": 12299,
|
| 57 |
+
"num_problems": 180
|
| 58 |
+
}
|
| 59 |
+
]
|
| 60 |
+
}
|
problems.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:362154c9ea64e3356859a4586911fe8587cc9f8a4520316038e222452931ce64
|
| 3 |
+
size 633682478
|