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
- Peiwei Wu (ORCID: https://orcid.org/0009-0008-3096-1669)
- Qian Peng
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