Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 09 · DSA · Four patterns the ladders lean on · about 17 min to read

Play it as a journeyTutor comes with a plan

Which cable splits the network: bridges and SCC

Graphs
Graphs · Open board

: dots and the lines between them. This lesson asks which single line holds a graph together, and which dots can all reach each other when the lines have a direction.

Lesson 86 of 96 in DSA

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • One cable, two halves
  • DFS timestamps: number each building when the walk first reaches it
  • Low-link: the earliest building a part of the walk can reach
  • A bridge: a cable whose far side cannot climb back past it
  • Strongly connected: every dot can reach every other, following the arrows
  • Kosaraju: two walks, and the second runs on reversed arrows
  • Bridges and articulation points
  • Tarjan and Kosaraju on the seven services
  • LC 1192, Critical Connections in a Network
  • LC 1568, Minimum Number of Days to Disconnect Island
  • Edges and limits

Terms it explains: cycle, discovery time, back edge, low-link, bridge, articulation point, strongly connected component, Common mistakes, A*, adjacency list, adjacency matrix, Bellman-Ford, BFS, DAG, DFS, Dijkstra, directed vs undirected, in-degree, MST, relax an edge, sparse vs dense, topological sort, union-find, vertex/edge, weighted.

Lab

Every find walks a chain of houses up to the root. In the worst order, how long can that chain get, and what keeps it short?

Drag Cables joined to the end, then switch The habits and watch Tallest chain fall from 31 to 5.

Open The short chains

Review DSA