11 Nanoseconds per Word: Over-Optimizing Anagrams
ColinWright
15 points
2 comments
November 04, 2026
Related Discussions
Found 5 related stories in 115.1ms across 11,645 title embeddings via pgvector HNSW
- Show HN: I made a word building game supporting anagrams and one handed use busymom0 · 13 pts · September 03, 2026 · 48% similar
- Show HN: 18 Words pompomsheep · 909 pts · July 09, 2026 · 48% similar
- Show HN: Alphabet Soup, a multiplayer game, build the longest word to win johnchinjew · 34 pts · August 09, 2026 · 48% similar
- Show HN: Wordminos – Crosswords Meet Dominos dyarosla · 19 pts · October 08, 2026 · 46% similar
- Don't Wordle Hbruz0 · 328 pts · August 25, 2026 · 45% similar
Discussion Highlights (2 comments)
oguz-ismail2
If the dictionary is static what's the point of building a hashtable out of it at runtime? If it's not how do we know this'll work with a different dictionary? I didn't know about Gödel numbering though, that part is cool.
wood_spirit
This reminds me fondly of things I used to do for programming contests :) I think I did an anagram dictionary once. My memory is that I computed the anagrams once ever and made a dictionary file which was a sorted word list and the offset of the next anagram of that word. The sorted letters for each anagram group were also in the same list. Because it was searching for multiple word phrases you just did a search on the subsets of letters left for candidates. Scrabble dictionaries were the most mind bending I think. I don’t think I wrote anagrams up but this is the scrabble one https://williame.github.io/post/87682811573.html