Dinic algorithm | Maximum Flow Problem | Network Flow | Graphs | Data Structure
In this video, I have discussed Dinic's algorithm to solve Maximum Flow Problem. In Dinic’s algorithm, we use BFS to check if more flow is possible and to construct level graph.
I have explained the algorithm using an example and have implemented in C++ as well.
00:00 Introduction
00:08 Define Maximum Flow Problem
02:21 Terminologies (Residual Capacity, Residual Graph, Augmenting Level Path)
03:24 Dinic's Algorithm Pseudo Code
16:32 C++ implementation
Source Code: https://github.com/fit-coder/fitcoderyoutube/tree/master/graph
-------------------------------------------------------------
I live in New Delhi and love explaining programming concepts. I have done M.Tech(BITS Pilani) + B.Tech(PEC, Chandigarh) in Computer Science and am currently working as a software engineer in a MNC.
If you like my content, please like, share my videos and subscribe to the channel.
-------------------------------------------------------------
For in-depth Graph theory and implementation details, please refer to the below videos:
Graphs Introduction: https://www.youtube.com/watch?v=4xMsNIPEkwA
Graph representation:
Adjacency Matrix: https://www.youtube.com/watch?v=x6N5FK6ArRk
Adjacency List: https://www.youtube.com/watch?v=3AtEzK4sowk
Incidence Matrix: https://www.youtube.com/watch?v=bP-8P8f8mAY
Traversal techniques:
BFS, Breadth First Search: https://www.youtube.com/watch?v=iYz-pG1CPIM
DFS, Depth First Search: https://www.youtube.com/watch?v=oO1857MQlcs
Shortest Path algorithms:
Dijkstra algorithm: https://www.youtube.com/watch?v=J12sfRYpW-M
Bellman Ford algorithm: https://www.youtube.com/watch?v=iGzZEJc_w3I
Floyd Warshall algorithm: https://www.youtube.com/watch?v=R0Srbd5ALN8
Minimum Spanning Tree:
Kruskal algorithm: https://www.youtube.com/watch?v=dYIWheKq5Xc
Prim algorithm: https://www.youtube.com/watch?v=NCpUwOqt41k
Topological sort (Kahn algorithm): https://www.youtube.com/watch?v=gDNm1m3G4wo
Articulation points / Cut vertices:
Tarjan algorithm: https://www.youtube.com/watch?v=qNVNoZJFp_g
Disjoint Set / Union Find: https://www.youtube.com/watch?v=0JE7hxr8c5c
Maximum Flow Problem:
Ford Fulkerson algorithm: https://www.youtube.com/watch?v=_UcOALraATY
Dinic algorithm:
Graph coloring / Chromatic number: https://www.youtube.com/watch?v=oikZlz1GNbo
Hamiltonian cycle: https://www.youtube.com/watch?v=jGRRBJlNtwI
Euler cycle (Fleury algorithm): https://www.youtube.com/watch?v=c0e50JIAMuM
#DataStructure,#Graphs,#FitCoder,#Algorithm,#competitiveprogramming
Видео Dinic algorithm | Maximum Flow Problem | Network Flow | Graphs | Data Structure канала Fit Coder
I have explained the algorithm using an example and have implemented in C++ as well.
00:00 Introduction
00:08 Define Maximum Flow Problem
02:21 Terminologies (Residual Capacity, Residual Graph, Augmenting Level Path)
03:24 Dinic's Algorithm Pseudo Code
16:32 C++ implementation
Source Code: https://github.com/fit-coder/fitcoderyoutube/tree/master/graph
-------------------------------------------------------------
I live in New Delhi and love explaining programming concepts. I have done M.Tech(BITS Pilani) + B.Tech(PEC, Chandigarh) in Computer Science and am currently working as a software engineer in a MNC.
If you like my content, please like, share my videos and subscribe to the channel.
-------------------------------------------------------------
For in-depth Graph theory and implementation details, please refer to the below videos:
Graphs Introduction: https://www.youtube.com/watch?v=4xMsNIPEkwA
Graph representation:
Adjacency Matrix: https://www.youtube.com/watch?v=x6N5FK6ArRk
Adjacency List: https://www.youtube.com/watch?v=3AtEzK4sowk
Incidence Matrix: https://www.youtube.com/watch?v=bP-8P8f8mAY
Traversal techniques:
BFS, Breadth First Search: https://www.youtube.com/watch?v=iYz-pG1CPIM
DFS, Depth First Search: https://www.youtube.com/watch?v=oO1857MQlcs
Shortest Path algorithms:
Dijkstra algorithm: https://www.youtube.com/watch?v=J12sfRYpW-M
Bellman Ford algorithm: https://www.youtube.com/watch?v=iGzZEJc_w3I
Floyd Warshall algorithm: https://www.youtube.com/watch?v=R0Srbd5ALN8
Minimum Spanning Tree:
Kruskal algorithm: https://www.youtube.com/watch?v=dYIWheKq5Xc
Prim algorithm: https://www.youtube.com/watch?v=NCpUwOqt41k
Topological sort (Kahn algorithm): https://www.youtube.com/watch?v=gDNm1m3G4wo
Articulation points / Cut vertices:
Tarjan algorithm: https://www.youtube.com/watch?v=qNVNoZJFp_g
Disjoint Set / Union Find: https://www.youtube.com/watch?v=0JE7hxr8c5c
Maximum Flow Problem:
Ford Fulkerson algorithm: https://www.youtube.com/watch?v=_UcOALraATY
Dinic algorithm:
Graph coloring / Chromatic number: https://www.youtube.com/watch?v=oikZlz1GNbo
Hamiltonian cycle: https://www.youtube.com/watch?v=jGRRBJlNtwI
Euler cycle (Fleury algorithm): https://www.youtube.com/watch?v=c0e50JIAMuM
#DataStructure,#Graphs,#FitCoder,#Algorithm,#competitiveprogramming
Видео Dinic algorithm | Maximum Flow Problem | Network Flow | Graphs | Data Structure канала Fit Coder
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Dinic's Algorithm | Network Flow | Graph Theory](https://i.ytimg.com/vi/M6cm8UeeziI/default.jpg)
![Zigzag (Spiral) Level Order Traversal of Binary Tree | 4 Methods Explained | Binary Trees](https://i.ytimg.com/vi/YwABW6q3DOM/default.jpg)
![Disjoint Set | Union Find | Cycle Detection| Union By Rank | Path Compression | Graphs](https://i.ytimg.com/vi/0JE7hxr8c5c/default.jpg)
![Ford-Fulkerson in 5 minutes — Step by step example](https://i.ytimg.com/vi/Tl90tNtKvxs/default.jpg)
![Capacity Scaling | Network Flow | Graph Theory](https://i.ytimg.com/vi/1ewLrXUz4kk/default.jpg)
![Maximum Flow](https://i.ytimg.com/vi/ZBJHZi6Qu7s/default.jpg)
![Edmonds Karp Algorithm to find the Max Flow](https://i.ytimg.com/vi/MczX0SM3I84/default.jpg)
![Graphs Questions | Graphs Practice Problems | How to choose the Graph algorithm](https://i.ytimg.com/vi/LcoAstK0rpk/default.jpg)
![Euler Cycle (Circuit) | Euler Path | Circuit Theorem | Fleury's Algorithm | Graphs](https://i.ytimg.com/vi/c0e50JIAMuM/default.jpg)
![Graph representation II - Adjacency List Explained | Data Structure](https://i.ytimg.com/vi/3AtEzK4sowk/default.jpg)
![Analysis of Dinic's Algorithm - GT - Computability, Complexity, Theory: Algorithms](https://i.ytimg.com/vi/UMT4Nyl8JAA/default.jpg)
![A Second Course in Algorithms (Lecture 3: The Push-Relabel Algorithm for Maximum Flow)](https://i.ytimg.com/vi/0hI89H39USg/default.jpg)
![Dinic's Algorithm | Network Flow | Source Code](https://i.ytimg.com/vi/_SdF4KK_dyM/default.jpg)
![Graph Coloring | Chromatic Number | BackTracking | Greedy Algorithm | Data Structure](https://i.ytimg.com/vi/oikZlz1GNbo/default.jpg)
![Network Flows: Max-Flow Min-Cut Theorem (& Ford-Fulkerson Algorithm)](https://i.ytimg.com/vi/oHy3ddI9X3o/default.jpg)
![The Maximum Flow Minimum cut Theorem](https://i.ytimg.com/vi/wQG-sdtmhVQ/default.jpg)
![6.3 Graph Coloring Problem - Backtracking](https://i.ytimg.com/vi/052VkKhIaQ4/default.jpg)
![4.4 Bellman Ford Algorithm - Single Source Shortest Path - Dynamic Programming](https://i.ytimg.com/vi/FtN3BYH2Zes/default.jpg)
![Articulation Points | Cut Vertices | Tarjan's Algorithm | Graphs](https://i.ytimg.com/vi/qNVNoZJFp_g/default.jpg)
![AALG5: Flow networks, maximum bipartite matching example](https://i.ytimg.com/vi/x2BdRml5lmc/default.jpg)