News for hackers. Stuff that matters.
Re:Anagram Scoring by lisper on Wednesday February 22, 2017 @01:38AM (#13703568)
> O(nk) will still fit into L1

Not even close. The lexicon is 230k words, times 26 letters is nearly 6MB. The i7 has a 64kB L1 cache and a 246kB L2 cache.

I think the only way to resolve this would be to actually do the experiment. I wouldn't bet my life savings on the outcome either way, but I'll give you even odds at low stakes that sorting is faster.

There are no comments on this comment yet.