Algorithmic Prompt-Augmentation for Efficient LLM-Based Heuristic Design for A* Search

Thomas Bömer, Nico Koltermann, Max Disselnmeyer, Bastian Amberg, Anne Meyer
1/27/2026
cs.AImath.OC

No confident code implementation found for this paper.

Abstract

Heuristic functions are essential to the performance of tree search algorithms such as A*, where their accuracy and efficiency directly impact search outcomes. Traditionally, such heuristics are handcrafted, requiring significant expertise. Recent advances in large language models (LLMs) and evolutionary frameworks have opened the door to automating heuristic design. In this paper, we extend the Evolution of Heuristics (EoH) framework to investigate the automated generation of guiding heuristics for A* search. We introduce a novel domain-agnostic prompt augmentation strategy that includes the A* code into the prompt to leverage in-context learning, named Algorithmic - Contextual EoH (A-CEoH). To evaluate the effectiveness of A-CeoH, we study two problem domains: the Unit-Load Pre-Marshalling Problem (UPMP), a niche problem from warehouse logistics, and the classical sliding puzzle problem (SPP). Our computational experiments show that A-CEoH can significantly improve the quality of the generated heuristics and even outperform expert-designed heuristics.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bmer2026algorithmic,
  title  = {Algorithmic Prompt-Augmentation for Efficient LLM-Based Heuristic Design for A* Search},
  author = {Thomas Bömer and Nico Koltermann and Max Disselnmeyer and Bastian Amberg and Anne Meyer},
  year   = {2026},
  eprint = {2601.19622},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.19622v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.19622.svg)](https://codeofpaper.com/paper/2601.19622)

Discussion