views:

74

answers:

4

I've been asked to recommend a resource (on-line, book, tutorial) to learn Algorithms (in the sense of of the MIT Intro to Algorithms) for non-CS or Math majors. Obviously the MIT book is way to involved and some of the lighter treatments (like Oreilly's Algorithms in a Nutshell) still seem as if you would need to have some background in Algorithmic analysis. Is there resource that presents the material in a way that developers who do not have a background in theoretical comp sci will find useful?

A: 

I'm not sure which MIT book you're referring to, but the canonical text is CLRS. I don't think it really assumes any background besides high school math.

Personally, I found doing TopCoder algorithm competitions over the course of the past few years to be the best way for me to learn common algorithms and put them into practice. Perhaps you should try the same. Whatever you do, I suggest that you spend a lot more hands-on-keyboard time implementing things you learn than head-in-book time, because that's the way to really internalize different techniques.

mquander
yes I'm talking about CLRS. You're right in that it is an introductory text, however, the size and the academic way its written would be intimidating to many ....
ennuikiller
@ennuikiller - CLRS is a lot less intimidating when you've tried Knuth first. I know that through painful experience...
rtperson
A: 

I'd go for the Algorithm Design Manual, by Steven Skiena. It's very readable and starts with the basics in an easy-to-understand way. For example, it explains big-O notation very well. The emphasis is on practical application, which is a big bonus for beginners coming from a non-theoretical field.

The second half of the book is a reference of common algorithm problems and practical approaches to their solutions. I found it invaluable as a learning aid, and now as a reference.

ire_and_curses
Thanks for the recommendation!
ennuikiller
A: 

I think the best way to learn algorithms are through the various competition sites.

  • USACO - my personal favorite, as it gives a clear path through the material
  • TopCoder - already mentioned
  • Sphere Online Judge - great if you want to work in another language other than C/C++/Java

As far as books, the best single intro I've seen for the non-math specialist is Data Structures and Algorithms. It takes you through an algorithm line by line and shows you how it decomposes mathematically, something CLRS's otherwise excellent analysis section is a little less clear on.

Skiena's Algorithm Design Manual is also excellent, as is his Programming Challenges, which is essentially a tutorial through the Valladolid Online Judge.

Honestly, though, I think the single most helpful thing a beginner can do is to implement the various algorithms -- merge sort, say, followed by Quicksort -- and time them against variously sized inputs. Create a spreadsheet with a graph that shows their growth over time. Very few non-specialists will have the patience or the know-how to set up a recurrence relation and solve their way through it. But you must understand the effect of, say O n^2 growth over time, and there's no better way to learn this than to watch your own program blow through its memory stack. :)

I say this as a non-CS, non-math programmer who has spent a good couple of months wrapping my mind around algorithmic analysis.

rtperson
there is not competition in here, only colleague
none
@none - I call them "competition sites" because they're set up specifically to allow people to train for the various algorithmic competitions. They are excellent learning tools.
rtperson
A: 

Try this: http://see.stanford.edu/see/courseinfo.aspx?coll=11f4f422-5670-4b4c-889c-008262e09e4e Explains everything you need in very simple language.

Stas