Dinic's Algorithm | Network Flow | Graph Theory

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ส.ค. 2024
  • Explanation of Dinic's network flow algorithm
    Next Video: • Dinic's Algorithm | Ne...
    Ford Fulkerson explanation video:
    • Max Flow Ford Fulkerso...
    Ford Fulkerson source code video:
    • Max Flow Ford Fulkerso...
    Algorithms repository:
    github.com/williamfiset/algor...
    Video slides:
    github.com/williamfiset/Algor...
    Personal website:
    www.williamfiset.com
    ===================================
    Practicing for interviews? I have used, and recommend `Cracking the Coding Interview` which got me a job at Google. Link on Amazon: amzn.to/3cvMof5
    A lot of the content on this channel is inspired by the book `Competitive Programming` by Steven Halim which I frequently use as a resource and reference. Link on Amazon: amzn.to/3wC2nix
    Support me by purchasing the full graph theory course on Udemy which includes additional problems, exercises and quizzes not available on TH-cam:
    www.udemy.com/course/graph-th...

ความคิดเห็น • 42

  • @ohadyeger5583
    @ohadyeger5583 5 ปีที่แล้ว +113

    Just found out this Dinitz guy is a professor at my school, sitting a few doors away as I watch this.
    Blew my mind.

    • @Linaiz
      @Linaiz 4 ปีที่แล้ว +4

      Haha wow!! I'm thinking about doing my master's in CS in Israel. May I know the name of the school? Do you recommend it?

    • @almogz9486
      @almogz9486 4 ปีที่แล้ว +5

      @@Linaiz he just quit in the end of 2019 it seemes he taught at ben gurion university

    • @spano1723
      @spano1723 3 ปีที่แล้ว

      I also study CS in Israel (Bar-Ilan), who is this professor? Where does he teach?

    • @ohadyeger5583
      @ohadyeger5583 3 ปีที่แล้ว +4

      It's Ben Gurion University in Israel

  • @sarwarjahan05
    @sarwarjahan05 5 ปีที่แล้ว +42

    Hats Off man. Finally found a perfect video to learn Dinic properly.

  • @tylerlozano152
    @tylerlozano152 4 ปีที่แล้ว +20

    Your videos are phenomenal. The crisp step by step visual representations of the algorithm and concise explanations helped my understanding immensely. Thanks so much.

  • @LucasGomesDantas
    @LucasGomesDantas 5 ปีที่แล้ว +9

    You made me love this algorithm. Thank you!

  • @mohammedkhandwawala6758
    @mohammedkhandwawala6758 5 ปีที่แล้ว +4

    You explain really well. Keep making such good videos.

  • @brainrs2732
    @brainrs2732 ปีที่แล้ว +2

    my complements to the chef. really well made video, deserves a subscription :)

  • @jirifrantal2236
    @jirifrantal2236 5 ปีที่แล้ว +5

    Thank you very much! :-) Great and easy to understand explanation.

  • @MrSasanaga
    @MrSasanaga ปีที่แล้ว

    日本にはDinic法の解説をする記事がほぼなかった。この動画は本当に分かりやすくて助かる。 (There are few lectures about Dinic's algorithm in Japan so I am very happy to find this very straightforward video. Thanks!! )

  • @Parakak
    @Parakak 4 ปีที่แล้ว +1

    Thank you very much for this helpful video.

  • @kiranboddeda4121
    @kiranboddeda4121 ปีที่แล้ว +1

    Top notch explaination, that to with a source code helps in visualizing things more better. Thank you so much:))))

  • @sharathnair1702
    @sharathnair1702 3 ปีที่แล้ว +1

    Thanks a lot, love the explanation

  • @AyushSingh-pq5wf
    @AyushSingh-pq5wf 5 ปีที่แล้ว +1

    Thanks a lot !!! it was great help , very short and nice video.

  • @matianblob
    @matianblob ปีที่แล้ว

    Nice video, you helped my a lot with understanding of graph theory algorithms, thank you

  • @ilovancristian
    @ilovancristian 2 ปีที่แล้ว +1

    Thank you, this is helpful!

  • @vagelispsimenos
    @vagelispsimenos 3 ปีที่แล้ว +1

    Much appreciated!

  • @real_potatohead1970
    @real_potatohead1970 5 ปีที่แล้ว +1

    really helpful!

  • @mitsumeru4954
    @mitsumeru4954 ปีที่แล้ว +1

    I was rather confused why Shimon Even calls 'Dinic's algorithm', 'Dinitz's algorithm' in his book. Thanks for clarifying it!

  • @k.alipardhan6957
    @k.alipardhan6957 5 ปีที่แล้ว

    thanks for these videos

  • @narendratejasvi6037
    @narendratejasvi6037 3 ปีที่แล้ว

    Thank you sir.

  • @nguyenthanhhien3333
    @nguyenthanhhien3333 4 ปีที่แล้ว

    thank you very much !

  • @apaarkamal1301
    @apaarkamal1301 3 ปีที่แล้ว

    best ed video I have ever seen

  • @Why_I_am_a_theist
    @Why_I_am_a_theist ปีที่แล้ว +1

    at 7:10 , is that '3' node also a dead end ? If not then why, and what do we actually have to do with the dead ends. Delete those vertex or all the edges in the dfs

  • @MrZH6
    @MrZH6 2 ปีที่แล้ว

    Awesome!

  • @saiachyuth3460
    @saiachyuth3460 2 ปีที่แล้ว +2

    But you also considered the backwards/side edge in the second iteration. The dead end path you mentioned has a backwards edge right ?

  • @longvu2033
    @longvu2033 2 ปีที่แล้ว +1

    can we avoid all dead end if when we DFS, we DFS from T with reversed edge and we just take the level from L to L - 1 ?

  • @AkshayAradhya
    @AkshayAradhya 6 หลายเดือนก่อน

    The extra DFS is not even needed. When building the level graph, you can simply store an aditional parent node for every node. So once you reach the sink, just traverse backwards using the parent graph

  • @xhamadeex
    @xhamadeex 5 ปีที่แล้ว +2

    I love you!

  • @TruongNguyen-pl9cd
    @TruongNguyen-pl9cd 2 ปีที่แล้ว +1

    thes the edges need to go from L to L+1 or can it also go from L to L+2??

  • @Andy-yh7jk
    @Andy-yh7jk ปีที่แล้ว

    huge video

  • @LLuckyy
    @LLuckyy 2 ปีที่แล้ว +1

    1 question
    If u have a graph
    Do u add two new vertices and label them source and sink
    Or label 2 of the vertices that already exist as source and sink
    ??

    • @WilliamFiset-videos
      @WilliamFiset-videos  2 ปีที่แล้ว

      Typically I add two nodes to be the source and the sink

  • @Why_I_am_a_theist
    @Why_I_am_a_theist ปีที่แล้ว

    what is the intuition behind Level graph , 3:43 you said 'as quickly as possible' but that's not what we want , we want to have maximum flow so there can be a possible path which moves backwards and give us an additional flow . So why Level graph aims at only reaching quickly?

  • @tuongvile9817
    @tuongvile9817 5 ปีที่แล้ว

    I need practical application for dinic algorithm in practice
    Can anyone tell me?

    • @ritikagupta8847
      @ritikagupta8847 4 ปีที่แล้ว +1

      Network Flow : Max Flow Min Cut

  • @amielwexler1165
    @amielwexler1165 2 ปีที่แล้ว

    .