Live data from Hacker News

Ask HN: Looking for a book on algorithms and data structures

news.ycombinator.com

11–20 of 98 posts

Re: Ask HN: Looking for a book on algorithms and data structures

#12
"A Common-Sense Guide to Data Structures and Algorithms, 2nd Edition" by Jay Wengrow is one I'd recommend every time. It really makes it easy enough to understand things I previously only considered to be the domain of math-oriented people. Not sure if it goes deep enough for you though...

Re: Ask HN: Looking for a book on algorithms and data structures

#13
If you want basics and details, the art of computer programming is a good candidate.

Unfortunately, it isn’t done yet (1), and the completed parts have are very basic and have parts that are a bit dated (multi-tape sorting, for example)

(1) and likely never will be. Knuth is turning 84 in two months, and isn’t even halfway writing it, after almost 60 years

Re: Ask HN: Looking for a book on algorithms and data structures

#15
Back when I was in high school I learned all leetcode algorithms from doing programming competitions. One of the books I used was: http://acm.cs.buap.mx/downloads/Programming_Challenges.pdf

What really put me to the next level is this amazing free training program which I still recommend anyone who wants to nail the interviews. It teaches each algorithm and data structure and gives you appropriate challenging exercises so you really understand them: https://train.usaco.org/

Re: Ask HN: Looking for a book on algorithms and data structures

#16
I would recommend Open Data Structures: https://opendatastructures.org/

It's available for free online, or if you'd like you can buy a physical copy. It's got 14 chapters that take you through a variety of data structures, introduces you to the theory behind them, and teaches you the basics of analyzing them.

I've done many of the exercises from this book, and found them useful for learning the topic.

Re: Ask HN: Looking for a book on algorithms and data structures

#17
"Algorithms Illuminated" by Roughgarden. Very accessible. Reads like a novel not a textbook. Has exercises throughout the chapter to test knowledge. I recommend it over your suggestion that you want a textbook. This book will serve you much better.

Re: Ask HN: Looking for a book on algorithms and data structures

#18
post #6

Sedgewick's Algorithms [1] is pretty good. I found it way more approachable than CLRS. There's also a free course on Coursera[2] from him. 1. https://www.amazon.com/Algorithms-4th-Robert-Sedgewick/dp/03... 2. https://www.coursera.org/learn/algorithms-part1#syllabus

I learned most of my algorithm knowledge from Sedgewick in the 1990s. There is a series that applies them to various languages (C,C++, Java, etc) that makes them very accessible and easy to experiment with.

Re: Ask HN: Looking for a book on algorithms and data structures

#20
post #10

The Algorithm Design Manual by Steven Skiena Amazing book. Very readable. I highly recommend it. The book has a section call "War story" at the end of each chapter in which Skiena shares his real life experience of when the contents from that particular chapter came in handy for him. Go through it. You won't regret https://www.amazon.com/Algorithm-Design-Manual-Steven-Skiena...

Not OP but I’m interested in this subject as well. I took a look at this book and others that are similar and I’ve realized my foundations on math are really lacking to even understand the given examples. Since I only had the opportunity to finish my high school diploma and this was several years ago I wonder if you could have any suggestion to brush my math knowledge up in order to properly understand the examples of these books. The thing for me is that I’m not sure where I should start. Would you know any resource to introduce me to the math foundations in order to understand such texts? Or maybe math concepts that I should study before I dig in. I really appreciate it. Thanks.
Post reply on HN