Skip to main content

Module 3: Graph Algorithms & Network Analysis: Mistake Clinic

This clinic turns wrong moves into reusable judgment. Use it after each practice page and again before the quiz or checkpoint.


Module-Specific Mistake Radar

Start with these traps. Replace or extend them with real mistakes from your own work.

Mistake to look forWhere it shows upSymptomRepair evidence
Finishing Graph Representation and Traversal Lab with only a final answerGraph Representation and Traversal LabThe work has no failed case, trace, test, proof gap, or design stress point.Add the smallest broken example and show the repair that changes the result.
Finishing Shortest Paths and MST Workshop with only a final answerShortest Paths and MST WorkshopThe work has no failed case, trace, test, proof gap, or design stress point.Add the smallest broken example and show the repair that changes the result.
Finishing Network Flow and Matching Clinic with only a final answerNetwork Flow and Matching ClinicThe work has no failed case, trace, test, proof gap, or design stress point.Add the smallest broken example and show the repair that changes the result.
Finishing Code Katas with only a final answerCode KatasThe work has no failed case, trace, test, proof gap, or design stress point.Add the smallest broken example and show the repair that changes the result.
Treating What a Graph Is as vocabulary instead of a toolWhat a Graph IsThe explanation names the concept but cannot decide between two cases.Write one example, one non-example, and the rule that separates them.
Treating Adjacency List vs Adjacency Matrix as vocabulary instead of a toolAdjacency List vs Adjacency MatrixThe explanation names the concept but cannot decide between two cases.Write one example, one non-example, and the rule that separates them.

Practice Mistake Checks

Pull any miss from these checks into your mistake log.

Graph Representation and Traversal Lab

Source: practice/01-graph-representation-and-traversal-lab.md

For each statement, identify the error:

  1. "I'll use BFS on a weighted graph because I want the shortest path."
  2. "Two vertices are in the same SCC if one can reach the other."
  3. "A directed graph is acyclic iff its undirected version is acyclic."
  4. "Adjacency matrix is faster because memory lookups are O(1)."
  5. "DFS always explores children left-to-right; that is part of the algorithm."
  6. "Kahn's algorithm outputs the unique topological order of a DAG."

Shortest Paths and MST Workshop

Source: practice/02-shortest-paths-and-mst-workshop.md

For each statement, identify the error:

  1. "I ran Dijkstra on a graph with a few negative edges; no negative cycle, so the answers are correct."
  2. "Floyd-Warshall is always better for APSP than running Dijkstra many times."
  3. "Prim gives the shortest path tree from the root."
  4. "Kruskal runs in O(|E| log |V|) even without union by rank and path compression."
  5. "Bellman-Ford detects all negative cycles in the graph."
  6. "Dijkstra with a Fibonacci heap is always the fastest choice in practice."

Network Flow and Matching Clinic

Source: practice/03-network-flow-and-matching-clinic.md

For each statement, identify the error:

  1. "I counted backward edges T -> S in the cut capacity, so my min-cut is c(S, T) + c(T, S)."
  2. "Ford-Fulkerson always terminates in polynomial time."
  3. "Max flow equals min cut only when the capacities are integers."
  4. "Bipartite matching reduces to shortest paths."
  5. "If there is no augmenting path, I haven't yet found the max flow - I just need to try another DFS order."
  6. "Hopcroft-Karp works because bipartite graphs have no cycles."

Repair Protocol

For each real mistake:

  1. Reproduce the failure on the smallest example, trace, proof, query, command, or design sketch.
  2. Name the hidden assumption.
  3. Repair the artifact.
  4. Save evidence that changed: failing then passing test, corrected proof step, revised diagram, safer command, benchmark, or review note.
  5. Add one retrieval card beginning with Check... before... or Do not use... when....

Mistake Log

DateMistakeSymptomRoot causeRepair evidenceRetrieval card
StarterPick one radar row aboveExplain how it would fail in this moduleName the assumptionAdd a counterexample or corrected artifactWrite the card before closing the page

Completion Standard

  • At least five real mistakes are logged.
  • At least two mistakes include a counterexample or failing test.
  • At least one mistake connects to an older semester skill.
  • At least one correction changes code, a proof, a diagram, a command transcript, a query, or a design decision.