HN Hall of Fame Weekly email

A Gentle Introduction to Algorithm Complexity Analysis

discrete.gr Books & learning Tutorials & guides Computer science Candidate

Resurfaced independently across 4 calendar years, with breakout response in 2 of them.

submissions
5
submitters
5
observed span
2012–2021
peak thread · 23 comments
283 pts
latest 20+ return · 2018-06-13
283 pts

Submission timeline

2007–2026

One 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 order

The 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

100+ points or 50+ comments

Total points
510

reference only — not used in Hall rules or ranking

Total comments
42

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2012-07-04A Gentle Introduction to Algorithm Complexity AnalysisFirst breakoutgtklocker13223
2015-02-22A Gentle Introduction to Algorithm Complexity Analysis (2012)epenn917
2018-02-25A Gentle Introduction to Algorithm Complexity Analysistinderliker20
2018-06-13A Gentle Introduction to Algorithm Complexity AnalysisBest thread · Latest 20+ point returnColinWright28312
2021-08-18A Gentle Introduction to Algorithm Complexity Analysigautamsomani20