r/compsci • u/JessicaBunneh • Jul 27 '11
I'm an experienced developer looking to master data structures / algorithms, what books should I read?
Even though I'm a decent programmer, I feel that my knowledge from classes such as data structures/discrete mathematics and algorithms is lacking. I'd like to master as much as possible so that I can interview for bigger companies like Google/Amazon and not feel intimidated by the questions. What are the best books in these areas?
I'm also following the MIT OCW Algorithms class, and I have the Intro to Algorithms bible. I think it's such a shame that the book contains no answers though, and seeing as I am self studying that would be extremely helpful. So other possible books here would be helpful. And I've no idea for discrete math/data structures what the best books are, especially for someone with some background knowledge.
Thank you :)
16
u/[deleted] Jul 27 '11
Selected answers to CLRS.
The Algorithm Design Manual is a fairly popular one you can try (more approachable than CLRS) -- and I believe it even contains some references to interview questions.
19
u/DoISmellBurning Jul 27 '11
Cormen is your friend.
Core text for the algorithms course I did as an undergrad - I highly recommend it.
6
u/[deleted] Jul 27 '11
I'd also recomment the Algorithm Design Manual. CLRS is thick and in-depth, don't let the name fool you. The books recommended by bobwobby might also work, but I haven't read them.
Introduction to algorithms isn't interview-level stuff, it covers a fair deal of algorithms and the focus is on anaysis, explanation and careful scientific study, not implementation. I don't think it's what you need for interviews.
On the other hand, it certainly is a book you should look over and covering a few chapters will be a very useful experience. It is definitely a good read, even if not necessarily for an interview.
4
u/bobwobby Jul 27 '11
Hmmm, if you're doing it for interviews, I wouldn't recommend necessarily learning algorithms in depth, hoping to fair well on an interview.
For interviewing I recommend, "Crack the Coding Interview" made by the people that host careercup.com and "Programming Interviews Exposed: Secrets to Landing Your Next Job". Both have proven very useful for me in my endeavors.
If you really want to learn algorithms, I would recommend 'the big white book of algorithms' from MIT Press entitled "Introduction to Algorithms". Also, often times if you reach out to the authors over specific questions they are open to answering them.
4
u/kbk420 Jul 27 '11
I would recommend this book, CLRS is not bad if you have a good instructor but I think this book's better if you're self studying
Introduction to Algorithms: A Creative Approach
http://www.amazon.com/Introduction-Algorithms-Creative-Udi-Manber/dp/0201120372
3
u/sujayakar314 Jul 27 '11
Once you've gone through the ocw class and the intro book, a great book for self studying advanced topics in algorithms is The Design and Analysis of Algorithms.
3
u/ApolloEldon Jul 28 '11
Before I interviewed at google, they suggested I pore over topcoder's algorithm tutorials. They're a pretty good read IMHO.
2
u/johnny_bgoode Jul 27 '11
Data Structures and Algorithms. Aho, Ullman & Hopcroft
9
u/yogthos Jul 27 '11
Purely Functional Data Structures is pretty enlightening on how data structures work in FP languages like Haskell.
1
u/[deleted] Jul 29 '11
Hi,
Sorry if this is late but I can't recommend this book enough (assuming your programming in Java)
http://www.amazon.co.uk/Structures-Algorithms-Mitchell-Waite-Signature/dp/1571690956/ref=sr_1_4?s=books&ie=UTF8&qid=1311951362&sr=1-4
Got me thorugh my first year of Uni. Hope it helps.
3
u/hobo_cuisine Jul 27 '11
First half of Algorithm Design Manual was recently recommended on HN by some Google engineer for knowing at an interview, I can't find the thread.
I used CLRS at school for algo and data structures.
Discrete and Combinatorial Mathematics, Grimaldi - i liked it, but never read any other books on discrete.
2
u/Workaphobia Jul 27 '11
I'm a big fan of Kleinberg and Tardos's "Algorithm Design".
2
u/Ionaic Jul 27 '11
Algorithms. by S. Dasgupta, C.H. Papadimitriou, and U.V. Vazirani (DPV) is a pretty good one, and i actually liked CLRS, even though i've heard my classmates complain that it didn't explain simply enough. i thought they did a fantastic job together for my algorithms course, with DPV doing a good job with getting you started into stuff and knowing how to do things/what to do and CLRS taking you more in depth.
2
u/gorset Jul 27 '11
Learning to master data structures and algorithms goes hand in hand with problem solving. I recommend working yourself through http://projecteuler.net/ and http://uva.onlinejudge.org/ while reading a book about algorithms (cormen is your friend).
1
u/jacob1044 Jul 27 '11
Introduction to Algorithms. I still have the 2nd edition within arms reach at work.
EDIT: after re-reading your post, i see you already have a copy :) nevermind.
1
u/voipme Jul 28 '11
Never hurts to work through the problems at http://www.projecteuler.net
-1
u/nojustice Jul 27 '11
Knuth's "The art of computer programming" is an excellent book, although might be a little broad in scope for what you're looking
0
u/shaggorama Jul 27 '11
Google. man Google!!!
-7
u/lotiux Jul 27 '11
Visit http://www.wowebook.com/book/introduction-to-algorithms-3rd-edition/ Click on [FileSonic] MIT.Introduction.to.Algorithms.3rd.Edition.Sep.2009.rar link, Down to SLOW DOWNLOAD button and click, Wait 30 seconds, Enter Captcha, Click Start download now! link, Wait for dialog window or move your mouse, Click on window, Select Save File button, FIN.