Two-letter Wordle is hard to approximate on average
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.
Provenance statement
Tools used
- OpenAI
- Codex
- Lean
- Lean
References
- W. Rosenbaum. Finding a winning strategy for Wordle is NP-complete. arXiv:2204.04104 (https://arxiv.org/abs/2204.04104), 2022.arXiv
- 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
- 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
- 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
- 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
- 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
- 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
- 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