Skip to content

Comment on Bitap: My favorite string matching algorithm

Comments

It is a really nice derivation of Bitap from first principles. I had not seen that before. Good job!

One small nit: he says the naive algorithm is linear - maybe it is for the average case, but it has a quadratic worst case complexity. Bitap is linear even for worst case.

AboutSource Built by g1lg1l

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