TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Gentle Introduction to Algorithm Complexity Analysis

132 pointsby gtklockeralmost 13 years ago

6 comments

ssurowiecalmost 13 years ago
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.<p>[0] <a href="http://www.amazon.com/dp/1849967202" rel="nofollow">http://www.amazon.com/dp/1849967202</a>
评论 #4201941 未加载
mbenjaminsmithalmost 13 years ago
Great article. I've understood the why and what of Big-O but never how to do the analysis.<p>I have a question for the informed however:<p>The article says that we only consider the fastest growing parts of an algorithm. So, counting instructions, n^2 + 2n would just be n^2. But why do we do that? Imagine an algorithm where we have n^12 + n^2 + n^2 + n^2 + n^2, etc. Do we really ignore each n^2 section?<p>[Edited]
评论 #4201688 未加载
tsurantinoalmost 13 years ago
I've been doing the Coursera course on Algorithms (from Stanford by Tim Roughgarden). He's going over concepts like Big-O notation as well as analyzing algorithms. This particular article is a refreshing read, and I would highly suggest the Coursera course as an accompaniment if someone wants to go deeper.
captaincrunchalmost 13 years ago
A gentle intro? It's a bloody novel!
评论 #4202798 未加载
rlualmost 13 years ago
I wonder if the title is in jest. Clicking on this link and then being greeted with a wall of text (literally! It fills my entire screen) is hardly gentle.<p>I'm sure it's a good read just not right now &#62;_&#62;
评论 #4201069 未加载
sodelatealmost 13 years ago
similar topic in many Computer Algorithm Books