Hacker News new | ask | show | jobs
by wood_spirit 38 days ago
This was a fun read! Thanks for the great introduction to Finite State Transducers. I hadn't heard the formal term before, but your article gave me serious déjà vu.

Years ago, I entered a Scrabble programming contest and needed to compress a GADDAG dictionary to fit into my 6MB L3 cache. Without knowing the official name for it, I ended up using the exact same suffix-compression mechanism by moving characters to the edges instead of the nodes to merge overlapping paths.

Sharing my old write-up here in case you or other data-structure nerds find the overlap interesting! https://williame.github.io/post/87682811573.html

2 comments

On my list to pore over, and I will return once I have grokked it :) It was a little too much for my tired brain last night.
Nice reminder that a lot of these wins come from removing identity that the algorithm doesn’t actually need.