Algorithm Science (Summer 2025) - 38 - Network Flows II @billbird2597
Algorithm Science (Summer 2025) - 38 - Network Flows II  @billbird2597
Uploaded July 2025 | Updated November 2026, 3 hours ago
This video was made as part of a second-year undergraduate algorithms course sequence (Algorithms and Data Structures I and II).

0:00 Introduction
1:23 Putting Out Fires
5:30 Cuts
14:00 Flow Across an st-cut
20:38 Weak Duality
27:30 The Max-Flow Min-Cut Theorem
47:01 The Edmonds-Karp Algorithm
53:17 Proof Insights
1:14:17 Monotonically Increasing Distance for Vertices
1:32:34 Monotonically Increasing Distance for Edges
1:44:53 The Edmonds-Karp Algorithm is Polynomial
1:50:30 Edmonds-Karp Examples

At about 1:31:30 in the video, I noticed a typo on Slide 100 and quickly added a fix. It turns out that although both the original expression and the fixed one are valid, by the logic on Slide 91 the last part of the expression should actually be "d(s,u) - 1 = d(s,v) - 2" (which is an even better bound than the original expression or my fixed version from the video). Fortunately, the proof is correct regardless of whether the last part of the expression is written as "d(s,v) - 1" (like the original slide), "d(s,v)" (as in my quick fix) or "d(s,v) - 2" (which is what Slide 91 really implies).

The proof of the running time for the Edmonds-Karp algorithm (Slides 88 - 116) was adapted from the proofs of Theorems 24.7 and 24.8 in Introduction to Algorithms (3rd edition) by Cormen, Leiserson, Rivest and Stein.

All slides and diagrams are original content (developed in early 2025). The materials used in this video, and the video itself, were prepared without any assistance from generative AI.

As any viewer will quickly realize, these videos were made just like in-person lectures: in one sitting, with no breaks, editing or script. If you find any of this helpful or interesting, please let me know (I really appreciate any other feedback as well).
Algorithm Science (Summer 2025) - 38 - Network Flows IIC++ Programming (Spring 2022) - Lecture 12.10 - bothC Programming Practice (Fall 2023) - 11.04 - Debugging V (Structure Types)C Programming Practice (Fall 2023) - 8.02 - Strings IIC++ Programming (Spring 2022) - Lecture 6.06 - An Alternative RectangleC++ Programming (Spring 2022) - Lecture 6.08 - const ObjectsC Programming Practice (Fall 2023) - 6.02 - Pointers IIC++ Programming Practice (Fall 2023) - 7.01 - OperatorsAlgorithm Science (Summer 2025) - 23 - Graphs and TreesData Compression (Summer 2023) - Lecture 19 - The Discrete Cosine Transform (DCT)C++ Programming (Spring 2022) - Lecture 3.04 - try and catchC Programming Practice (Fall 2023) - 11.02 - Dynamic Memory
BillBird |

Algorithm Science (Summer 2025) - 38 - Network Flows II

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER