Course · 6 lessons ~48 hr Advanced

Graph Algorithms

Master graph representations, traversals (BFS/DFS), shortest paths, minimum spanning trees, topological sort, and connected components. Graphs are everywhere in software — understanding them transforms how you see systems. Bundler is a graph algorithm. Your Gemfile defines a dependency graph, and bundle install performs topological sort with constraint satisfaction to find a valid resolution. Sidekiq job dependencies form DAGs (directed acyclic graphs). Database foreign key relationships form a graph — and when you run db:migrate, Rails topologically sorts your migrations. If you have ever used acts_as_tree or ancestry gem, you are working with tree structures (special graphs). Understanding graph algorithms helps you design better data models and recognize when a problem is fundamentally a graph problem disguised as a Rails problem.

reading · we frame, you read MIT or the canonical taught · we author, no canonical fits ↺ spirals back to earlier lessons
Course locked

Complete Recursion, Backtracking & Dynamic Programming first.

This course unlocks once you've finished its prerequisite. Open prerequisite →

6 lessons. Read in order; spiral back when you need to. By the end you'll have used the core ideas twice — once on the abstract, once on something you'll meet at work next week.