Optimal Algorithm for Winning Hangman

后端 未结 7 1553
庸人自扰
庸人自扰 2021-02-04 03:18

In the game Hangman, is it the case that a greedy letter-frequency algorithm is equivalent to a best-chance-of-winning algorithm?

Is there ever a case where it\'s worth

7条回答
  •  忘掉有多难
    2021-02-04 04:03

    Choose a letter that divides the remaining valid words in 2 sets of nearly equal size. With positional information there could be more than 2 sets. Repeat until your set has size 1. That is the best way. The proof is left as an exercise.

提交回复
热议问题