Greedy flow counterexample [00S5]
Unfortunately, this greedy flow algorithm does not work. We may get stuck in a “local optimum” where there are no more unsaturated paths, but we have not found the globally maximum flow. Here is a counterexample.
However, all is not lost! We can actually keep the basic outline of the greedy algorithm. We really just need to allow ourselves to undo or “push back” flow if we find somewhere better for it to go.