Idea · Sep 29, 2026

Chokepoint Simulator

Students build a web app that loads a real trade or transport network, lets users close a node or link, and recomputes flows, reroutes, and bottlenecks with max-flow/min-cut and shortest-path algorithms.

What it would do

Graph algorithms become memorable when the graph is the world. In this multi-week assignment, teams ingest an open network dataset (country-to-country trade flows, a national rail or airline route map, or a city's transit graph), build a capacity-weighted directed graph, and implement the core algorithms themselves: Dijkstra for rerouting cost, Edmonds-Karp or Dinic for max flow between chosen regions, and min-cut extraction to name the true chokepoints. The front end is a map where a user clicks to 'close' a port, strait, station, or edge, and the app animates how flow redistributes, which destinations lose supply, and how much extra distance the reroutes cost. Milestones progress from data cleaning and graph construction, to correctness tests against networkx on small graphs, to performance work on the full dataset, to a written 'what-if' brief where each team defends one scenario with numbers. An optional stretch adds betweenness centrality to compare 'busy' nodes against 'critical' ones.

Key features

  • Ingestion pipeline turning an open dataset into a capacity-weighted directed graph
  • Student-implemented Dijkstra, max-flow (Edmonds-Karp or Dinic), and min-cut extraction with tests against networkx
  • Interactive map where closing a node or edge animates flow redistribution and reroute cost
  • Scenario comparison table (lost supply, added distance, new bottlenecks) exportable as CSV
  • Final 'what-if' brief that defends one disruption scenario with algorithmic evidence

More in Algorithms & Data Structures

Build Your Own Spreadsheet Engine

A staged course project where students build a working spreadsheet: formula tokenizer and parser, dependency graph, topological recalculation, cycle detection, undo/redo and a React grid on top.

Algorithms & Data StructuresClass assignmentLargeOct 6, 2026

Brick by Constraint

A multi-week graph algorithms assignment: students turn a voxel shape into a buildable LEGO model, using union-find for connectivity, a search over brick layouts, and a stability check, then export a real LDraw file.

Algorithms & Data StructuresClass assignmentLargeOct 4, 2026

Data Structure City

An explorable 'city' where each building is a live data structure (hash map, B-tree, skip list, LRU cache) that visibly restructures as students send commands.

BuiltAlgorithms & Data StructuresProduct for a businessSep 26, 2026

Big-O Sonifier

Converts an algorithm's live execution trace into sound, so students can hear the difference between O(n), O(n log n), and O(n^2) as the input size grows.

Algorithms & Data StructuresTeaching toolMediumSep 23, 2026

All 27 ideas in Algorithms & Data Structures →