Picture a network of water pipes running from a source to a destination. Every pipe has a capacity — a maximum it can carry per second. Some pipes are fat, some are thin, and they join at junctions. The question is simple: how much water can you push from the source to the destination at once?
That's the maximum flow problem, and it isn't only about water. The "pipes" can be roads carrying cars, cables carrying data, or a supply chain carrying goods. Anywhere stuff moves through a network with limited links, max flow asks for the most you can send.
Here's the twist that makes this article special. Almost every problem on this site is easy to check but hard to solve. Max flow breaks the pattern: it looks tangled and complex, yet it has a beautiful, efficient solution. Sometimes the limits of algorithms bend in our favour.
Comments
Loading comments...