Live data from Hacker News

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

news.ycombinator.com

1–10 of 98 posts

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

#1
I want to learn Algorithms & Data Structures from scratch then move on to doing LeetCode.

But I want a structured guide / textbook that I can follow which also contains exercises.

I have checked the CLRS book, but, it's more of a reference than a book that you can read from cover to cover. For example a basic Stack is explained in a page and a half or two, for me this is not enough, I want a book that can go into the details of each specific DS or Algorirhm.

*TL;DR:* Are there any books better than CLRS for DS & Algos?

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

#4
> I want a book that can go into the details of each specific DS or Algorirhm.

I'm not aware of any book like that. At the uni, the process is repetitive and incremental.

First you learn how to implement the algo, then you learn how to count (discrete math) and, finally, you learn how to analyze its complexity. Concurrently, you might see some more details on how those data structure are used in Operating System and learn how to implement them in some lecture about parallel computing.

MIT has a great resource online. They have recorded lecture, exercises, lecture notes with reading suggestion, etc.

Their intro to algo. https://ocw.mit.edu/courses/electrical-engineering-and-compu...

Also, see what it the reading for similar lectures on other universities.

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

#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

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

#7
post #4

> I want a book that can go into the details of each specific DS or Algorirhm. I'm not aware of any book like that. At the uni, the process is repetitive and incremental. First you learn how to implement the algo, then you learn how to count (discrete math) and, finally, you learn how to analyze its complexity. Concurrently, you might see some more details on how those data structure are used in Operating System and…

CLRS + ocw mit course should be good in my opinion. Really helped me a lot

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

#8
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

Came here so say this. The booksite has additional materials and, crucially, solutions to many of the exercises

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

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

Post reply on HN