Wordle is a single-player word-guessing game where the goal is to discover a secret word $w$ that has been chosen from a dictionary $D$. In order to discover $w$, the player can make at most $\ell$ guesses, which must also be words from $D$, all words in $D$ having the same length $k$. After each guess, the player is notified of the positions in which their guess matches the secret word, as well as letters in the guess that appear in the secret word in a different position. We study the game of Wordle from a complexity perspective, proving NP-hardness of its natural formalization: to decide given a dictionary $D$ and an integer $\ell$ if the player can guarantee to discover the secret word within $\ell$ guesses. Moreover, we prove that hardness holds even over instances where words have length $k = 5$, and that even in this case it is NP-hard to approximate the minimum number of guesses required to guarantee discovering the secret word. We also present results regarding its parameterized complexity and offer some related open problems.
翻译:Wordle 是一个单玩玩的单词猜测游戏, 目标是从字典中发现一个秘密单词 $w$ $D。 为了发现$w$, 玩家最多可以猜测$@ell$。 为了发现$w$, 玩家最多可以猜测$@ ell$$, 这也必须是$D$的单词, 所有单词的长度都相同 $k$。 每次猜想后, 玩家都会被告知他们猜得与秘密单词相符的位置, 以及猜中出现在不同位置的秘密单词中的字母 。 我们从复杂的角度研究Wordle游戏, 证明它自然正规化的NP- 硬性: 如果玩家可以保证在$@ell$范围内发现秘密单词, $@ $@ $。 此外, 我们证明, 在单词长度为$k = 5$的情况下, 硬性甚至很难接近保证发现秘密单词所需的最低猜数 。 我们还展示其参数化复杂性的结果, 并提供一些相关的公开问题 。