Submission timeline
2007–2026One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.
First comments on top threads
HN comment orderNot sure why the Myers bit vector algorithm from 1999 is not included in these comparisons. Since it can operate on whole 32-bit or 64-bit registers at a time, it is really O(NM/w) which is in effect just O(N) and just gives you the whole edit distance. Heikki Hyyrö has a few papers and a PhD thesis from circa 2001..2005 that walk you through this in pseudo-code that you could port to any low level language and also generalize the…
https://github.com/intel/hyperscan/ implements this along multiple regex matching and a pcre pattern compatible engine (chimera).
Actually, if you want to see whether the edit distance (Levenshtein) is within a fixed bound, say k, it's no longer O(mn), but around O(kn) (since you're only ever filling a narrow band of width ~k along the diagonal instead of the whole rectangle). Nonetheless, the DFA construction is priceless if you want flexible matching against a dictionary.
For those of you like me who tried to read this article without the proper education to understand everything at first pass, here is the definition of a couple of acronyms he used without defining first: NFA = Nondeterministic Finite Automata (http://en.wikipedia.org/wiki/Nondeterministic_finite-state_m...) DFA = Deterministic Finite Automata (http://en.wikipedia.org/wiki/Deterministic_finite-state_mach...)
The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.
- Breakout years
- 3
- Total points
- 659
- Total comments
- 84
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2010-07-28 | Damn Cool Algorithms: Levenshtein AutomataFirst breakout | desigooner | 118 | 14 |
| 2011-03-17 | Damn Cool Algorithms: Levenshtein Automata | mbowcock | 99 | 8 |
| 2015-06-10 | Levenshtein Automata (2010) | beau | 61 | 34 |
| 2018-08-30 | Levenshtein Automata (2010) | tosh | 1 | 0 |
| 2018-09-04 | Levenshtein Automata (2010) | tosh | 172 | 11 |
| 2022-03-05 | Damn Cool Algorithms: Levenshtein AutomataBest thread · Latest 20+ point return | graderjs | 208 | 17 |
