Skip to content

Comment on After 20 years, the globally optimal Boggle boardparent

Comments

danvkOP

Sorry, but this doesn’t pass the smell test. The article mentions 200,000 random 4x4 boards/second on a single core on an M2. That’s a ~4GHz chip. So ~20,000 ops/board. There are 200,000 words in the dictionary. You can’t possibly do something for every word in the dictionary, it would be too slow.

It sounds like your Trie implementation had a bug or inefficiency.

I think GP mentioned it was on a _single_ boggle board.

danvkOP

Your best bet in that case is to store the dictionary in a Trie or DAWG structure that can be mmapped directly from disk.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.