A Gentle Introduction to Algorithm Complexity Analysis
Report a link problem
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 orderThe explanation of Big O in Grokking Algorithms was clearest for me. It doesn't assume any knowledge and even re-introduces logarithms and binary search before using them in examples: - Logarithms and binary search: https://livebook.manning.com/#!/book/grokking-algorithms/cha... - Big O: https://livebook.manning.com/#!/book/grokking-algorithms/cha...
For anyone interested in this subject I'd highly recommend the Algorithm Design Manual by Steven Skiena[0]. He goes over this in pretty good detail in the first ~1/4 of the book. This was my first introduction to Algorithm Complexity Analysis and by the end of that section I already found myself looking at my code in a different light. [0] http://www.amazon.com/dp/1849967202
A handy tip to reverse engineer complexity from empirical examples is plot on a log-log plot and measure the gradient (if its a straight line). The gradient is the exponent, ie. O(n^gradient). Great if your algorithm is so complex you can't analyze it. http://www.dgp.toronto.edu/people/JamesStewart/378notes/05lo...
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
- 2
- Total points
- 510
- Total comments
- 42
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 |
|---|---|---|---|---|
| 2012-07-04 | A Gentle Introduction to Algorithm Complexity AnalysisFirst breakout | gtklocker | 132 | 23 |
| 2015-02-22 | A Gentle Introduction to Algorithm Complexity Analysis (2012) | epenn | 91 | 7 |
| 2018-02-25 | A Gentle Introduction to Algorithm Complexity Analysis | tinderliker | 2 | 0 |
| 2018-06-13 | A Gentle Introduction to Algorithm Complexity AnalysisBest thread · Latest 20+ point return | ColinWright | 283 | 12 |
| 2021-08-18 | A Gentle Introduction to Algorithm Complexity Analysi | gautamsomani | 2 | 0 |