Graph Theory37 sections · 1633 units
Open in Course

Police Chase - Walkthrough

(Example with 4 cities)

Example: 55 nodes, edges (11,22), (11,33), (22,44), (33,44), (44,55). Max flow is 22.

This means there are 22 edge-disjoint paths from source to sink. The algorithm finds paths 12451 \to 2 \to 4 \to 5 and 13451 \to 3 \to 4 \to 5. Min-cut must have 22 edges to disconnect all paths. BFS from 11 on the residual graph reaches nodes 11, 22, 33. Nodes 44 and 55 are not reachable. Edges crossing the cut: (22,44) and (33,44). Block those two roads and the criminal cannot escape. The algorithm found the minimum set. You can verify no smaller set disconnects source from sink.