Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

AlgoSkill: Learning to Design Algorithms by Scheduling Human-Like Skills

About

Designing an algorithm from a natural-language problem statement requires identifying the problem structure, reading constraints, choosing a suitable paradigm, checking correctness, and refining complexity. Existing large language model (LLM) methods often rely on direct generation or generic self-refinement, leaving these steps implicit. We propose AlgoSkill, which models algorithm design as sequential decision-making over a typed library of algorithmic skills, including abstraction, constraint analysis, state design, data-structure selection, proof checking, counterexample construction, and complexity refinement. A learned scheduler proposes skills from the current design state, while a Monte Carlo Tree Search (MCTS) controller explores skill sequences using verification feedback from compilation, testing, stress testing, and complexity analysis. Experiments on competitive programming and combinatorial optimization benchmarks show that AlgoSkill improves over direct LLM generation, chain-of-thought prompting, self-refinement, and MCTS without typed skills. Ablations show that typed skills, verification-based repair, and search-based scheduling each contribute to performance. These results support treating automatic algorithm design as verification-guided skill scheduling rather than one-shot code generation.

Xinyuan Song, Zekun Cai, Liang Zhao• 2026

Related benchmarks

TaskDatasetResultRank
Competitive ProgrammingAtCoder/LeetCode contest problems 40 (released after 2024-08-01)
Pass Rate67
16
Code GenerationHard Corpus 192 problems 4
Correctness (pass@1)83.3
12
Competitive ProgrammingHard Bench (HB-15) pass@5 v2
Correlation Score47
9
Time-OptimalityCP-275 positive-gain backbones v2
T-opt97.6
8
Algorithm SynthesisNovel Hard Benchmark 15 problems version 2
Correct Count (out of 15)7
7
Competitive ProgrammingCP-275 audited version 2
Correctness (%)80.7
6
Algorithm SynthesisRule-based benchmark 200 contamination-free problems
Correct77
4
Code GenerationHard Corpus 4 (192 problems)
S-opt75.5
4
Competitive ProgrammingHard Bench HB-15 v2
Correctness47
3
Showing 9 of 9 rows

Other info

Follow for update