Zero-Shot Solvers from Large Language Models: An Evaluation on Seventeen Google Hash Code Rounds

Large language models (LLMs) are increasingly used to write programs, yet they are mostly evaluated on tasks in which a program is either correct or not. In optimization problems, by contrast, the quality of a solution is measured by a score. In this study, we evaluate how well LLMs write solvers for such problems in a zero-shot setting, in which a model receives only the official problem statement and returns a complete program in a single reply, without any code written by humans or feedback from the instances. Specifically, we use all 17 qualification and final rounds of Google Hash Code from 2014 to 2022 and compare 510 solvers, written by three models of the Claude 5.5 family, with the teams of the original competition. The experimental results indicate that, on the qualification rounds, the median solver of the strongest model, Claude Opus 5.5, reaches 97% of the total of the winning team and would have finished among the top teams of several of them, such as second of 230 teams on Optimize a Data Center. On the final rounds, however, its median falls to 65% of the winning total, and the smaller models fall even further. Moreover, the quality varies considerably between generations of the same model, so that combining the outputs of all solvers of a round reaches a median of 98.2% of the winning total and would have won the 2018 final round. These results suggest that a single reply of an LLM already provides a strong baseline for score-based optimization problems, against which more elaborate search-based methods should be measured.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-30
DOI
https://doi.org/10.21203/rs.3.rs-11897609/v1
Primary Topic
Software Engineering Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Zero-Shot Solvers from Large Language Models: An Evaluation on Seventeen Google Hash Code Rounds

Kadri Sylejmani, Elvir Misini, Uran Lajçi, Jetë Lajçi et al.
Research Square
Software Engineering Research
preprint

Zero-Shot Solvers from Large Language Models: An Evaluation on Seventeen Google Hash Code Rounds

Kadri Sylejmani, Elvir Misini, Uran Lajçi, Jetë Lajçi, Dardan Bakiu
preprint en

Abstract

Large language models (LLMs) are increasingly used to write programs, yet they are mostly evaluated on tasks in which a program is either correct or not. In optimization problems, by contrast, the quality of a solution is measured by a score. In this study, we evaluate how well LLMs write solvers for such problems in a zero-shot setting, in which a model receives only the official problem statement and returns a complete program in a single reply, without any code written by humans or feedback from the instances. Specifically, we use all 17 qualification and final rounds of Google Hash Code from 2014 to 2022 and compare 510 solvers, written by three models of the Claude 5.5 family, with the teams of the original competition. The experimental results indicate that, on the qualification rounds, the median solver of the strongest model, Claude Opus 5.5, reaches 97% of the total of the winning team and would have finished among the top teams of several of them, such as second of 230 teams on Optimize a Data Center. On the final rounds, however, its median falls to 65% of the winning total, and the smaller models fall even further. Moreover, the quality varies considerably between generations of the same model, so that combining the outputs of all solvers of a round reaches a median of 98.2% of the winning total and would have won the 2018 final round. These results suggest that a single reply of an LLM already provides a strong baseline for score-based optimization problems, against which more elaborate search-based methods should be measured.

Research Square
University of Prishtina (XK)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon