Maximum FlowLesson 41Free preview
DSA Maximum Flow
This lesson is part of DSA · All levels
Summary
The maximum flow problem looks for the maximum current value that can be sent from source to destination on a weighted network called a flow network. The key concept is path augmentation and residual capacity: as long as there is still a path with positive residual capacity, the current can be increased. The max-flow min-cut theorem ensures that the maximum current is equal to the minimum cutting capacity.
Key points
- Flow network consists of a source, destination, and a capacity side
- Augmenting path is a path with positive residual capacity
- Maximum current value equal to minimum cut capacity (max-flow min-cut)
- Ford-Fulkerson and Edmonds-Karp are algorithms for their application.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.