Dinic's Algorithm | Network Flow | Graph Theory

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024

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

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

    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 ปีที่แล้ว +5

      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 ปีที่แล้ว +6

      @@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 ปีที่แล้ว +5

      It's Ben Gurion University in Israel

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

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

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

    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!

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

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

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

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

  • @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!! )

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

    You explain really well. Keep making such good videos.

  • @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

  • @ice_cube1273
    @ice_cube1273 4 หลายเดือนก่อน +1

    10:13 I love when I see Israelis come up in CS videos!!! It’s crazy to think that my professors probably know these guys. (AVL being the chief example)

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

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

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

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

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

    Thanks a lot, love the explanation

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

    Thank you, this is helpful!

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

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

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

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

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

    best ed video I have ever seen

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

    Thank you very much for this helpful video.

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

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

  • @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??

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

    Much appreciated!

  • @LLuckyy
    @LLuckyy 3 ปีที่แล้ว +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  3 ปีที่แล้ว

      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?

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

      While the goal of the algorithm is to find the maximum flow, it helps to speed up the algorithm if we just look at the path that makes progress, progress as in reaching the sink as fast as we can in an unweight graph. This way, instead of visiting at most E edges in traditional bfs iteration, we only have to visit up to at most V vertices, by only considering the fastest path. This reduces the time complexity from O(E) per iteration down to O(V) per iteration, this is faster as in any sensible flow problems, there will always be more edges than there are vertices.

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

      @yamyamyum may god bless you

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

    really helpful!

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

    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

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

    Thank you sir.

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

    thanks for these videos

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

    thank you very much !

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

    Awesome!

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

    huge video

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

    I love you!

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

    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 ปีที่แล้ว

    .