HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
Solving Wordle using information theory

3Blue1Brown · Youtube · 92 HN points · 5 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention 3Blue1Brown's video "Solving Wordle using information theory".
Youtube Summary
An excuse to teach a lesson on information theory and entropy.
Special thanks to these supporters: https://3b1b.co/lessons/wordle#thanks
Help fund future projects: https://www.patreon.com/3blue1brown
An equally valuable form of support is to simply share the videos.

Contents:
0:00 - What is Wordle?
2:43 - Initial ideas
8:04 - Information theory basics
18:15 - Incorporating word frequencies
27:49 - Final performance

Original wordle site:
https://www.powerlanguage.co.uk/wordle/

Music by Vincent Rubinetti.
https://www.vincentrubinetti.com/

Shannon and von Neumann artwork by Kurt Bruns.
https://www.instagram.com/p/CZpRKhMJnD6/

Code for this video:
https://github.com/3b1b/videos/tree/master/_2022/wordle

These animations are largely made using a custom python library, manim. See the FAQ comments here:
https://www.3blue1brown.com/faq#manim
https://github.com/3b1b/manim
https://github.com/ManimCommunity/manim/

You can find code for specific videos and projects here:
https://github.com/3b1b/videos/

------------------

3blue1brown is a channel about animating math, in all senses of the word animate. And you know the drill with YouTube, if you want to stay posted on new videos, subscribe: http://3b1b.co/subscribe

Various social media stuffs:
Website: https://www.3blue1brown.com
Twitter: https://twitter.com/3blue1brown
Reddit: https://www.reddit.com/r/3blue1brown
Instagram: https://www.instagram.com/3blue1brown_animations/
Patreon: https://patreon.com/3blue1brown
Facebook: https://www.facebook.com/3blue1brown
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Warning: Bit of a 'Hitch hikers guide to the galaxy"/conway game of life yak shave for a reply.

Nice start to providing a simple way to visually interact/experiment/manipulate different multiple Neural network concepts by loading/transforming any traditional code (working or not) & reshuffling/tesselating the structual representation of the code to generate a turing tape path via color execution paths.

Switching to pi calculus could provide the theory to support coroutine/coprossing/ threading" multiple interacting tape paths/color combinations/path diffs/scaled recusion to perform assembly language instructions. Raster graphics without the yak ( https://verdagon.dev/blog/yak-shave-language-engine-game ) Feed back between tape & "traditional code" as neural network layer(s)!

Flexiable code (via tessilations) without changing the actual imported source code! So, complete svg (tape interactions) web page as code source on how to interact with web page, ( https://www.youtube.com/watch?v=r6sGWTCMz2k )

what's displayed/played, documentation & usage manual included within code structure!

Unicode permits implied piping rich kern font without all the tech fluff. Unicode fails because allows infinate multics and is there for k&r incomplete. But, this approach is way more dimensional/colorful than unicode/tech stuff.

?? can one's code unintentially provide a wordle problem & solution in one package ?? (https://www.youtube.com/watch?v=v68zYyaEmEA )

?? turing complete fourier transforms https://www.youtube.com/watch?v=spUNpyF58BY

toolkit concepts:

  Neural networks / analog stuff : https://www.youtube.com/watch?v=GVsUOuSjvcg
  perceptrons:  https://www.youtube.com/watch?v=GVsUOuSjvcg

  spreadsheets (: https://www.youtube.com/watch?v=UBX2QQHlQ_I
  (turing spreadsheets -> https://www.felienne.com/archives/2974 )

  https://www.quantamagazine.org/the-busy-beaver-game-illuminates-the-fundamental-limits-of-math-20201210/
  BB theory : https://www.scottaaronson.com/papers/bb.pdf
  BB(8000) : https://scottaaronson.blog/?p=2725

  #### electrons do not spin -> https://www.youtube.com/watch?v=pWlk1gLkF2Y
  #### prime number spirals -> https://www.youtube.com/watch?v=EK32jo7i5LQ
  #### modular arithmetic : https://www.youtube.com/watch?v=lJ3CD9M3nEQ

  speed things up : https://github.com/vqd8a/DFAGE
Can this approach be used to classify programs as contributing to verifying 'Hichiker's Guide to the Galaxy' universal answer to 42 or must 42 be qualified as an imaginary number?
Mar 02, 2022 · lejohnq on Winning Wordle
I also enjoyed this video from 3Blue1Brown about solving wordle with information theory:

https://youtu.be/v68zYyaEmEA

Recently I watched two videos on how to solve Wordle using information theory by ThreeBlues1Brown

https://youtu.be/v68zYyaEmEA

https://youtu.be/fRed0Xmc2Wg

Excellent 3b1b video about trying to solve wordle using information theory https://www.youtube.com/watch?v=v68zYyaEmEA
greenyoda
Some HN discussion of that video a few days ago: https://news.ycombinator.com/item?id=30232413

Also, this interesting article was posted to HN the other day:

A Mathematician’s Guide to Wordle

https://aperiodical.com/2022/02/a-mathematicians-guide-to-wo...

gnicholas
Very interesting video. It mentions “crane” being the best opening word when using a sophisticated program. I wonder what the best word would be for a human with an average vocabulary (for a Wordle player). I think there’s a decent chance it’s not the same word because an average player wouldn’t be able to use lots of obscure words to narrow things down super precisely.

Perhaps one could create an algorithm where the list of possible words is an approximation of a human’s actual vocabulary.

If you wonder why in the demo author uses `crane` as first guess - check out recent video from 3Blue1Brown

https://www.youtube.com/watch?v=v68zYyaEmEA

conradludgate
It was a funny coincidence that I started working on this, and then an hour later he released that video :)
Feb 06, 2022 · 92 points, 13 comments · submitted by herbstein
netcat99
It's a bit disappointing to see "mathematically optimal" in the title when the strategy is based on a heuristic (granted, a very intuitive and effective one). For actual optimality results this article is good: https://www.poirrier.ca/notes/wordle-optimal/

In particular, max entropy heuristic + beam search will derive the optimal (now proven) strategy in terms of minimizing expected number of guesses

schmorptron
Slightly off-topic: 3Blue1Brown is such a treasure. I've been preparing for an exam for the past few days and only really discovered his LinAlg videos. They're incredible to get the reasoning behind a lot of what's happening.
nyc111
I love his animations, I wonder what programs he is using. He can do animations and calculations at the same time and it's all visually appealing. Most of his videos are amazing and fun to watch.
awesomelvin
He's generally using his own tool called 'manim'. All of his code/animations are open-source. The code for this specific video can be found here: https://github.com/3b1b/videos/blob/master/_2022/wordle.py
nyc111
Amazing! So he does not have a visual user interface? This is Python, right?
FractalHQ
As far as I know, that is correct!
smoe
There is also the community fork of manim

https://github.com/ManimCommunity/manim/

According to 3b1b on the original repo:

"Note, there are two versions of manim. This repository began as a personal project by the author of 3Blue1Brown for the purpose of animating those videos, with video-specific code available here. In 2020 a group of developers forked it into what is now the community edition, with a goal of being more stable, better tested, quicker to respond to community contributions, and all around friendlier to get started with."

https://github.com/3b1b/manim

__s
http://sonorouschocolate.com/notes/index.php?title=The_best_...

This site ranks CRANE 6th, & 8th in hard mode. Includes other parameters like PALET being optimal start if only 5 guesses were allowed

bspammer
There's something so gratifying about seeing your mental models of entropy and probability explained so visually. I wish all maths was taught with interactive diagrams, but it's not fair to expect everyone to be able to make 3b1b-level animations.
Syzygies
At 17:05 he shows two possibilities left, ABBAS and ABYSS. In the actual implementation of Wordle, ABYSS is the only remaining possibility.

(I recommend his videos to my students, who love them!)

I don't know anyone who has actually read the Wordle JavaScript, but there are two word lists. The first list consists of more familiar words, ordered by date to provide secret words for each day. The second list consists of other words in alphabetical order that are also accepted as guesses. One reverse-engineers this code by figuring this out; one can experiment by resetting the computer clock to a new day.

The standard assumption in any analysis of Wordle as actually played is that we don't know what day it is. Otherwise, the game is deterministic.

Various of us have written code that agrees that SOARE is the best first guess using Shannon entropy for how Wordle is actually played (RAISE is close and easier to remember), and TARES is the best first guess for the most common misunderstanding for how Wordle is played. I don't recognize his first guess, so I don't recognize what he's doing.

There isn't actually any proof that Shannon entropy is mathematically optimal here. I searched the literature for a relevant theorem after getting annoyed that so many online approaches were improvised. The trouble is that five letter words have a fixed, known, lumpy distribution, an artifact of human choice. If the game randomized both the secret word and the word lists themselves, and one could query an oracle to measure bin sizes for each candidate guess, ... but that's cooking the conclusion. If one took a limit as word length went to infinity, with a regular definition of what constitutes a word, there would likely be an optimality proof. On the other hand, after choosing an objective function one could entirely solve this finite game, as some have done, and entropy doesn't even come up.

A refined variant on entropy that would be computationally feasible in cases where one can't solve completely would be to look ahead several steps. For each possible response to each first guess word (in practice one need only consider the strongest, and a partial search is nearly optimal as my Dad noticed programming JOTTO on Kodak's computers in the 1960s), find the optimal next guess using Shannon entropy. Now measure the entropy of the bins after both guesses, to value the first guess.

gabrielsroka
> resetting the computer clock to a new day

Or just modify the JavaScript. It's uses the date as an index into the La array, modulo the length, which is 2315.

I used Chrome DevTools to pretty print the source code, it's on line 1156.

udbhavs
I wonder if the virality of the game would have been boosted if the word list was stored server-side and not readable from the client source. Although I'm not on twitter so I don't know if future word spoilers are an issue.
creatonez
The 3Blue1Brown video considers using the second list to be cheating, so that is probably the reason for a different optimal first guess. It takes a more general approach to figuring out which words are probably on the list, using a sigma distribution on top of the list of most common english words. (Notably, Grant admits at 19:59 that the parameters for this sigma distribution are a shot in the dark.)

This way, the bot can be used to play wordle against any adversary and not just the original game, since every valid word (1st list) can be guessed.

HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.