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
- Kadri Sylejmani (ORCID: https://orcid.org/0000-0002-4428-1161)
- Elvir Misini (ORCID: https://orcid.org/0009-0006-3262-7440)
- Uran Lajçi (ORCID: https://orcid.org/0009-0002-6214-5865)
- Jetë Lajçi (ORCID: https://orcid.org/0009-0007-2832-3791)
- Dardan Bakiu
Institutions
- University of Prishtina (XK)
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