Live data from Hacker News

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

news.ycombinator.com

91–98 of 98 posts

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

#91
I better recommend you to try your hands on code-forces, CP Algorithm etc. If you got stuck in any of the problems just read the discussion and given solution. If you continue this you several months then you quickly learning the data structures and algorithms. Because if you don't apply DSA which you will learn from any book then i guess it doesn't add much value to you. In the beginning problems might not able to solve but after giving time and looking solution you will start getting things. And I guess its just a myth or we can say a phobia that you need to know each and every piece of mathematics.

And I think graph is a data structure that you should be work upon. For this you can refer this book Introduction to Graph Theory Subsequent Edition by Douglas Brent West. This book you can just read and practice while solving problems on above coding problem platforms.

So, I recommend you first do code-forces DIV3, DIV2 problems, gain some confidence, and then pick any DSA book.

Or one thing you can also do just filter out problems related to math,Combinatorics etc.on code-forces and try to solve them. Through this approach you will learn to apply the concepts.

I hope this comment add some value to you! Happy coding.

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

#92
I'm only a student, but I personally really liked https://jeffe.cs.illinois.edu/teaching/algorithms/

This is better for more advanced topics, like dynamic programming (well, advanced for me, anyway). I started out taking over an hour to solve the first problem in the problem sets, but they build on each other slowly, so I was soon able to see solutions within minutes. It took me a weekend to go through chapters I was struggling with, and I did really well on my coding interview the next day.

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

#93
Im not good at maths but to get my work done this books helped me a lot:

https://www.amazon.de/Problem-Solving-Algorithms-Structures-... If I remember correctly it is Python 2

https://www.amazon.de/Algorithms-Illuminated-Part-1-Basics/d...

https://www.amazon.de/Algorithms-Illuminated-Part-Graph-Stru...

https://www.amazon.de/Algorithms-Illuminated-Part-Dynamic-Pr...

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

#94
Truth is, if you want to really learn algorithms and data structures, then you are the one who has to "go into the details". CLRS is the bible, I can't think of a better book, and you don't have to read it sequentially because most chapters are independent of each other.

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

#95
I’m in the initial phase of structuring a book that aims to teach some simple algorithms and data structures using Python. The idea is that the reader should do the (guided) exercises to learn how to build those data structures. It’s basically “learn by doing”.

For instance, to teach what a stack is I’ll explain the basic idea of a stack, then provide a base class and the reader must implement each method (init, push, pop, peek, etc) given the requirements and intended results of each functionality.

I already have a kind-of “learn by doing” ebook about Python (https://github.com/joaoventura/full-speed-python), so it’s like a follow-up to that one.

Don’t know if people are interested in a book like this, though..

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

#97

"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.

Another vote for Tim Roughgarden’s work. As someone who recently became a software engineer without a cs degree, his Stanford Algorithms I & II lectures (similar content to his books) have been the best instruction I’ve had on DS&A. I’ve dabbled with Skiena’s book, Grokking Algorithms, CTCI, and I now also have a copy CLRS that I use for reference or to go deeper on certain things. But I revisit Tim’s work all the time. Can’t recommend him enough.
Post reply on HN