Two-letter Wordle is hard to approximate on average

A mix of human-written and AI-generated textHuman understanding: some partscs.CC — Computational Complexitycs.DM — Discrete Mathematics

Contributed by Peiwei Wu ↗, Qian Peng ↗

Version 2 / Dec 01, 2026 / CC BY 4.0

Abstract

Rosenbaum asked whether it is NP-hard to minimize the expected number of guesses in Wordle. We prove that even approximation within a fixed factor greater than one is NP-hard for dictionaries of words of length two. The alphabet may grow with the input. Each word has distinct letters, each letter appears in at most three words, and the secret is uniform on the dictionary of legal guesses. We encode the edges of a graph as words. Adding words on fresh letters makes their waiting times reveal the minimum size of an edge dominating set. At length one, sequential guessing is optimal. We also give an exact polynomial-time algorithm for a two-letter variant in which both positions of each possible secret contain the same letter.

Author comments: The original manuscript, Lean formalization, exact checks on small dictionaries, and reproduction instructions are archived at https://doi.org/10.5281/zenodo.24616074.

Provenance statement

Peiwei Wu and Qian Peng chose the question of the expected number of guesses and directed the preparation of the manuscript for public release. They used OpenAI Codex to search the literature, develop the reductions, implement the proofs in Lean, and draft and revise the manuscript.

Tools used

OpenAI
Codex
Lean
Lean

References

  1. W. Rosenbaum. Finding a winning strategy for Wordle is NP-complete. arXiv:2204.04104 (https://arxiv.org/abs/2204.04104), 2022.arXiv
  2. D. Lokshtanov and B. Subercaseaux. Wordle is NP-hard. In FUN 2022 , LIPIcs 226, article 19. doi:10.4230/LIPIcs.FUN.2022.19 (https://doi.org/10.4230/LIPIcs.FUN.2022.19).DOI
  3. D. Bertsimas and A. Paskov. An exact solution to Wordle. Operations Research 73 (2025), 1384--1394. doi:10.1287/opre.2022.0434 (https://doi.org/10.1287/opre.2022.0434).DOI
  4. M. Cunanan and M. Thielscher. On optimal strategies for Wordle and general guessing games. In IJCAI 2023 , 5541--5548. doi:10.24963/ijcai.2023/615 (https://doi.org/10.24963/ijcai.2023/615).DOI
  5. U. Feige, L. Lovász and P. Tetali. Approximating min sum set cover. Algorithmica 40 (2004), 219--234. doi:10.1007/s00453-004-1110-5 (https://doi.org/10.1007/s00453-004-1110-5).DOI
  6. M. Yannakakis and F. Gavril. Edge dominating sets in graphs. SIAM Journal on Applied Mathematics 38 (1980), 364--372. doi:10.1137/0138030 (https://doi.org/10.1137/0138030).DOI
  7. M. Chlebík and J. Chlebíková. Approximation hardness of edge dominating set problems. Journal of Combinatorial Optimization 11 (2006), 279--290. doi:10.1007/s10878-006-7908-0 (https://doi.org/10.1007/s10878-006-7908-0).DOI
  8. J. Edmonds. Paths, trees, and flowers. Canadian Journal of Mathematics 17 (1965), 449--467. doi:10.4153/CJM-1965-045-4 (https://doi.org/10.4153/CJM-1965-045-4).DOI

Version history

  1. v2 · 5 pagesSubmitted by Peiwei WuThe original manuscript, Lean formalization, exact checks on small dictionaries, and reproduction instructions are archived at https://doi.org/10.5281/zenodo.24616074.CurrentDec 01, 2026