研究人员利用数学破解了 Wordle。
Researchers used math to crack Wordle

原始链接: https://www.binghamton.edu/news/story/6327/s-m-a-r-t-these-researchers-used-math-to-crack-wordle

宾汉姆顿大学的研究人员开发出一种解决 Wordle 的高效策略,该策略应用了数学上的不确定性度量——香农熵。在助理教授 Congyu “Peter” Wu 的带领下,该团队创建了一种优先选择“信息量大”而非“可能性高”单词的方法。 他们的策略并非试图立即猜出正确单词,而是利用信息论选择最能有效缩小候选词范围的单词。玩家只需将游戏的颜色反馈输入到辅助脚本中,即可计算出哪个单词能最大程度地降低不确定性,从而显著加快解题速度。 在对比模拟中,这种基于信息论的策略取得了 99% 的成功率,优于仅侧重于常见字母的传统方法。这项研究最初只是为了演示信息论实际应用的一个课堂项目,现已发表在《东北复杂系统杂志》上。该研究突显了抽象科学概念如何转化为动态工具,为这款热门的日常益智游戏提供了一种先进且以数据为导向的优势。

```Hacker News 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 研究人员利用数学破解了 Wordle (binghamton.edu) 7 点 | hhs 发布于 2小时前 | 隐藏 | 过往 | 收藏 | 1 条评论 帮助 ano-ther 1小时前 [–] 论文:https://orb.binghamton.edu/nejcs/vol8/iss1/6/ 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:```
相关文章

原文

Every day, millions of people play Wordle, the popular New York Times game that challenges users to guess a secret five-letter word. Using information theory, a team of researchers at Binghamton University, State University of New York, has developed a method to solve the game with a 99% success rate.

In Wordle, players attempt to solve a five-letter word within six guesses. At the start, players are presented with five blank spaces to play any letter of their choosing, with zero hints offered. When a player guesses a word – say “BRAVE” – the game provides feedback in the form of color highlights. 

  • Grey indicates that a guessed letter is not part of the secret word
  • Yellow indicates that a guessed letter is part of the secret word but is not in the correct order
  • Green indicates the guessed letter is part of the secret word and in the correct order

The player keeps guessing and is presented with clues until they guess the correct word and all five squares turn green – or they run out of guesses and lose the game.

The research team, led by Assistant Professor Congyu “Peter” Wu, applied Shannon entropy – a mathematical measure of uncertainty – to determine which guesses provide the most information. Rather than focusing solely on guessing the most likely answer from the get-go, their method prioritizes guessing words that provide as much information as possible to reduce the pool of possible words.

“Let's say you're at a certain guess. The previous guesses will eliminate a whole bunch of options, and based on the remaining options, guessing some words will send you into a trajectory where information gain is speedier,” said Wu, a faculty member at the Thomas J. Watson College of Engineering and Applied Science’s School of Systems Science and Industrial Engineering.

“A subtle but important insight from the paper is that a guess doesn’t have to be the most likely answer; it simply has to be informative,” said Donald Stephens, a doctoral student at Binghamton University. “By applying Shannon entropy, the objective shifts to maximizing the expected reduction in uncertainty rather than the probability of being right. In practice, this approach can lead to solving the puzzle in fewer guesses.”

Their method might seem more “random,” but it is more likely to lead to a successful guess by the end of the game. To use the method in real time, a player would need to run a script/program on the side. The player would enter the color-coded feedback that the game provides, and the program would spit out the next best guess to attempt to provide more information.

The team tested their strategy against a more traditional approach based on guessing common letters (e.g., “A”, “E”, “R”). In simulations, their approach solved 99% of Wordle puzzles, while the traditional method solved just 90%. 

This research paper didn’t stem from a research study but rather a class project where Wu tasked students to demonstrate information theory to solve a problem.  

Co-author Talal Aladaileh said that the paper’s growth from a course project into a published paper speaks volumes about the rigor, depth, and quality of the School of Systems Science and Industrial Engineering program at Binghamton.

“The courses here don't just teach concepts; they push you to apply them in ways that have real, lasting impact,” Aladaileh said.

Wu said that the project is a great use of information theory because it actively supports incorporating it to better perform a task. 

“What is especially creative and valuable about the team's intellectual contribution,” Wu said, “is that it transformed a static measurement (Shannon entropy) in a scientific domain into a dynamic solution that helps accomplish a popular task better, which showcases the team's deep understanding of class material and their talent as engineers.”

The paper, “Solving Wordle Using Information Theory,” was published in the Northeast Journal of Complex Systems.

联系我们 contact @ memedata.com