Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications

Categories

🎓 Certifications
🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
CheatGrid
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications
LVLEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Network Flow Algorithms Cheat Sheet

Network Flow Algorithms Cheat Sheet

Back to Mathematics and Algorithms
Updated 2026-05-19
Next Topic: Number Theory Cheat Sheet

Network flow algorithms solve optimization problems on directed graphs where edges have capacities and we route flow from a source to a sink. They underpin matching, scheduling, routing, and combinatorial optimization across computer science, operations research, and competitive programming.

What This Cheat Sheet Covers

This topic spans 12 focused tables and 142 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Flow Network FundamentalsTable 2: Max-Flow Min-Cut TheoremTable 3: Ford-Fulkerson MethodTable 4: Edmonds-Karp AlgorithmTable 5: Dinic's AlgorithmTable 6: Push-Relabel FrameworkTable 7: Push-Relabel Variants and HeuristicsTable 8: Minimum-Cost FlowTable 9: Bipartite MatchingTable 10: Flow Decomposition and ExtensionsTable 11: Algorithm Complexity ComparisonTable 12: Implementation Patterns

Table 1: Flow Network Fundamentals

Every flow algorithm rests on the same vocabulary, and these are the terms you'll lean on throughout. Capacity and conservation constraints define what a valid flow is; the residual graph and augmenting paths define how you improve one; and the s-t cut sets up the duality that the rest of the cheat sheet exploits. Get comfortable here before reaching for any specific algorithm.

ConceptExampleDescription
Flow network
G=(V,E), s,t∈V, cap:E→ℝ≥0
Directed graph with source s, sink t, non-negative edge capacities
Flow
f(u,v) ∈ [0, cap(u,v)]
Assignment satisfying capacity and conservation constraints
Capacity constraint
0 ≤ f(u,v) ≤ cap(u,v)
Flow on each edge cannot exceed its capacity
Flow conservation
∑f(u,v) = ∑f(v,w) ∀v≠s,t
Flow in equals flow out at every internal vertex
Value of flow
|f| = ∑f(s,v)
Total flow leaving source (or entering sink)
Residual graph
Gf: cf(u,v)=cap(u,v)-f(u,v)
• Graph of remaining capacities
• adds backward edge with capacity f(u,v)
Residual capacity
cf(u,v) = cap(u,v) - f(u,v)
• Remaining capacity on forward edge
• f(u,v) on backward edge
Augmenting path
s→a→b→t in Gf
Path from s to t in residual graph with all positive residual capacities

More in Mathematics and Algorithms

  • Multivariate Statistics Cheat Sheet
  • Number Theory Cheat Sheet
  • Abstract Algebra Essentials Cheat Sheet
  • Complex Analysis Cheat Sheet
  • Graph Algorithms Shortest Paths and Network Search Cheat Sheet
  • Modular Arithmetic for Programming Cheat Sheet
View all 57 topics in Mathematics and Algorithms