Jump to ratings and reviews
Rate this book

Algorithms Illuminated #2

Algorithms Illuminated (Part 2): Graph Algorithms and Data Structures

Rate this book
Accessible, no-nonsense, and programming language-agnostic introduction to algorithms. Includes solutions to all quizzes and selected problems, and a series of YouTube videos by the author accompanies the book. Part 2 covers graph search and its applications, shortest-path algorithms, and the applications and implementation of several data heaps, search trees, hash tables, and bloom filters. (Part 1 is not a prerequisite.)

Kindle Edition

Published August 4, 2018

13 people are currently reading
342 people want to read

About the author

Tim Roughgarden

15 books61 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
67 (57%)
4 stars
41 (35%)
3 stars
7 (6%)
2 stars
1 (<1%)
1 star
0 (0%)
Displaying 1 - 7 of 7 reviews
Profile Image for Michael Driscoll.
65 reviews6 followers
August 14, 2019
Very similar to Part 1, this book is almost verbatim the lectures from the Coursera course "Graph Search, Shortest Paths, and Data Structures" of the Algorithms Specialization, sections IX-XVI. I don't just mean the lecture notes, but what the Professor/Author speaks in the videos. That's not necessarily a bad thing, but just something to keep in mind.

On its own I'd say the book is a good textbook, but its real purpose is to be supplementary material to the Coursera lectures. This book does contain section IX Graphs and the Contraction Algorithm, which are covered in the first Coursera course even though they really fit better in this book. Basically if you're taking the Coursera series, get both books as this one will help with the final programming assignment.

In Summary: If you want to learn Algorithms on your own, this isn't for you. If you are taking the Coursera Algorithms Specialization and find it easier to read than listen, this is a good book to get.

Also once Roughgarden published his book he removed the suggested readings from the other Algo text books, which... I find a bit annoying. The weeks below don't line up to what you see on Coursera as originally the courses were two six-week courses as opposed to four four-week courses. Here are the other textbooks readings:

CLRS - Cormen, Leiserson, Rivest, and Stein, Introdution to Algorithms (3rd edition)
DPV - Dasgupta, Papadimitriou, and Vazirani, Algorithms
KT - Kleinberg and Tardos, Algorithm Design
SW - Sedgewick and Wayne, Algorithms (4th edition)

Week 1 (Merge Sort, Asymptotic Notation, Guiding Principles of Algorithm Analysis, Divide & Conquer Algorithms)

CLRS: Chapter 2, 3, and 4 (through Section 4.2), and Sections 28.1 and 33.4
DPV: Sections 0.3, 2.1, 2.3, 2.5
KT: Sections 2.1, 2.2, 2.4, 5.1, and 5.3-5.5
SW: Sections 1.4 and 2.2

Week 2 (Master Method, QuickSort)

CLRS: Chapter 4 (Sections 4-6) and Chapter 7
DPV: Section 2.2
KT: Sections 5.2 and 13.5
SW: Section 2.3

Week 3 (Final Thoughts on Sorting & Searching, Introduction to Graph Algorithms : Graph Representations & Minimum Cuts in Graphs)

CLRS: Chapter 9, 22 (Only 22.1)
DPV: Chapter 3 (only 3.1)
KT: Chapter 13, Sections 13.2,13.5
SW: Chapter 4, Section 4.1

Week 4 (Graph Search: Breadth-First Search, Depth-First Search, Applications: Topological Sort, Connected Components)

CLRS: Chapter 22
DPV: Chapter 3
KT: Chapter 3, Section 3.5, 3.6
SW: Chapter 4, Section 4.1,4.2

Week 5 (Dijkstra's Shortest-Path Algorithm, Data structures and how to use them, Heaps, Binary Search Trees, Balanced BSTs)

CLRS: Chapter 6,11,12,13 24 (Sections 3,4)
DPV: Section 1.5
KT: Section 4.4
SW: Section 3.3, 3.4, 4.4

Week 6 (Hash Tables: Applications and Implementation, Bloom Filters)

CLRS: Chapter 11
KT: Chapter 13 (Section 13.6)
SW: Section 3.5
Profile Image for Emre Ergin.
Author 10 books83 followers
October 3, 2022
I skimmed through a lot of books focusing on algorithms, and honestly, covering the most important data structures nearing the end of Part 2 was pretty interesting for me.

The example questions and the text was a bit misaligned this time compared to the first part, but other than this minor issue, I learned a lot, maybe to a lesser degree compared to Part 1, since I took some courses on Network Analysis already.

Programming exercises are on point, and straightforward enough that they could be easily generalized. Writing my own implementation of Heap for example was pretty enlightening.

Looking forward to the day I will put the info into good use.
10 reviews
September 14, 2021
Muy fácil de digerir. Los algoritmos son totalmente comprensibles, la redacción es amena, y hasta los programadores con años de experiencia podemos aprender cosas de este libro.

Además de los algoritmos básicos de grafos, y el repaso a estructuras como hash tables, he adquirido recursos nuevos, como el Heap o los Bloom Filters (de los que había sentido hablar pero nunca me había parado a entender)

Un imprescindible en mi biblioteca.
Profile Image for Сергей Польшин.
16 reviews
April 9, 2022
Very good

It's little different compare to knuth. But I think it's more practical book compare to others.
P. S. I think strong part of it it's explanations of algorithms . I able to understand what author try to explain .
Profile Image for Heather Fryling.
469 reviews4 followers
November 8, 2020
This whole series is fantastic for those wanting to gain a deep understanding of algorithms. The one drawback is that there are no solutions for most of the problems.
Profile Image for Mynk Pe.
9 reviews1 follower
November 12, 2021
this one is much more readable and clearly-explained than other mainstream algorithm books ( Cormen, etc) .
Profile Image for Anthony O'Connor.
Author 5 books31 followers
May 23, 2020
Solid intro.

Graphs and shortest paths. Heaps, binary search trees and hash tables. Fundamental. Well explained. There is a widespread misapprehension that Djikstra’s shortest path algorithm for directed weighted graphs is O(n^2). The author clears this up. Well written with good examples.
Displaying 1 - 7 of 7 reviews

Can't find what you're looking for?

Get help and learn more about the design.