← Back to context

Comment by danvk

4 days ago

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.

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