Two-letter Wordle is hard to approximate on average

Will Rosenbaum asked whether minimizing the expected number of guesses in Wordle is NP-hard. We prove that the uniform expected cost is NP-hard to approximate within a fixed factor greater than one, even when all words have length two, the legal guesses and possible secrets form the same dictionary, each word has distinct letters, and each letter occurs in at most three words. The corresponding threshold decision problem is NP-complete. The reduction represents graph edges as words and recovers the minimum edge domination number from the optimal total cost of a padded dictionary. It also gives an exact formula for the worst-case cost. At length one, sequential guessing is optimal. For two-letter dictionaries with monochromatic secrets, a maximum matching yields an exact polynomial-time algorithm. The archive includes the manuscript and Lean 4 source. The original open question is Section 5, Question 2, of Will Rosenbaum, Finding a Winning Strategy for Wordle is NP-complete. The versioned GitHub release contains the reproducible proof project. OpenAI Codex, a generative AI tool, was used in the literature search, the development of the reductions, the Lean formalization, and the drafting and revision of the manuscript.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-28
DOI
https://doi.org/10.5281/zenodo.24616073
Primary Topic
Complexity and Algorithms in Graphs
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Two-letter Wordle is hard to approximate on average

Peiwei Wu, Qian Peng
Zenodo (CERN European Organization for Nuclear Research)
Complexity and Algorithms in Graphs
preprint

Two-letter Wordle is hard to approximate on average

Peiwei Wu, Qian Peng
preprint en

Abstract

Will Rosenbaum asked whether minimizing the expected number of guesses in Wordle is NP-hard. We prove that the uniform expected cost is NP-hard to approximate within a fixed factor greater than one, even when all words have length two, the legal guesses and possible secrets form the same dictionary, each word has distinct letters, and each letter occurs in at most three words. The corresponding threshold decision problem is NP-complete. The reduction represents graph edges as words and recovers the minimum edge domination number from the optimal total cost of a padded dictionary. It also gives an exact formula for the worst-case cost. At length one, sequential guessing is optimal. For two-letter dictionaries with monochromatic secrets, a maximum matching yields an exact polynomial-time algorithm. The archive includes the manuscript and Lean 4 source. The original open question is Section 5, Question 2, of Will Rosenbaum, Finding a Winning Strategy for Wordle is NP-complete. The versioned GitHub release contains the reproducible proof project. OpenAI Codex, a generative AI tool, was used in the literature search, the development of the reductions, the Lean formalization, and the drafting and revision of the manuscript.

Zenodo (CERN European Organization for Nuclear Research)
Complexity and Algorithms in Graphs
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