Back to results

The University of Texas at Austin

LLM-based exhaustive generation of data structures

Abstract

dc:description.abstract

Bounded exhaustive testing requires enumerating all valid data structure in- stances up to a given size — a task traditionally handled by tools like Korat that rely on imperative validity predicates and systematic backtracking search. This report empirically investigates whether large language models (LLMs) can serve as reliable bounded enumerators, given only a natural-language specification of the data structure and its invariants. We evaluate four prompting strategies — Direct Enumeration, Few-Shot Enumeration, Validation-Feedback Refinement, and Code-Generating Enumeration — across four data structures (BST, Heap, Linked List, Red-Black Tree) at varying input sizes, using GPT-4o and GPT-5.4. Our main finding is that Code-Generating Enumeration is the only strategy that scales reliably: it achieves perfect recall on 100% of configurations with GPT-5.4. Direct generation strategies fail as ground-truth counts grow, either producing invalid structures or hitting output-length limits. Red-Black Trees remain the hardest structure across all strategies and models, due to their four interdependent invariants. These results suggest that LLMs are best used as program synthesizers rather than direct enumerators for bounded exhaustive testing.

Degree

thesis:*
Name thesis:degree_name
Master of Science in Engineering
Level thesis:degree_level
MASTERS
Discipline thesis:degree_discipline
Electrical and Computer Engineering
Department thesis:degree_department
Electrical and Computer Engineering
Grantor
The University of Texas at Austin
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Wu, Binbin
Advisor dc:contributor.advisor
  • Khurshid, Sarfraz
Committee member dc:contributor.committeemember
  • Garg, Vijay

Subjects

dc:subject × 4

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
University of Texas
Base URL
repositories.lib.utexas.edu/server/oai/request
Last updated
2026-11-20
Source record
OAI-PMH GetRecord
citation

Wu, Binbin. LLM-based exhaustive generation of data structures. MASTERS thesis, The University of Texas at Austin, 2026. https://doi.org/10.26153/tsw/64737