Dinic's Algorithm | Network Flow | Graph Theory

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 45

  • @ohadyeger5583
    @ohadyeger5583 5 лет назад +118

    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 года назад +5

      It's Ben Gurion University in Israel

  • @sarwarjahan05
    @sarwarjahan05 5 лет назад +45

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

  • @tylerlozano152
    @tylerlozano152 4 года назад +21

    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!

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

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

  • @mohammedkhandwawala6758
    @mohammedkhandwawala6758 5 лет назад +4

    You explain really well. Keep making such good videos.

  • @mitsumeru4954
    @mitsumeru4954 Год назад +1

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

  • @matianblob
    @matianblob Год назад

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

  • @jirifrantal2236
    @jirifrantal2236 6 лет назад +5

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

  • @Parakak
    @Parakak 5 лет назад +1

    Thank you very much for this helpful video.

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

  • @ice_cube1273
    @ice_cube1273 3 месяца назад +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)

  • @ilovancristian
    @ilovancristian 2 года назад +1

    Thank you, this is helpful!

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

  • @apaarkamal1301
    @apaarkamal1301 4 года назад

    best ed video I have ever seen

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

  • @AkshayAradhya
    @AkshayAradhya 10 месяцев назад

    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

  • @vagelispsimenos
    @vagelispsimenos 3 года назад +1

    Much appreciated!

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

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

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

  • @narendratejasvi6037
    @narendratejasvi6037 3 года назад

    Thank you sir.

  • @k.alipardhan6957
    @k.alipardhan6957 5 лет назад

    thanks for these videos

  • @real_potatohead1970
    @real_potatohead1970 5 лет назад +1

    really helpful!

  • @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 14 дней назад

      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 12 дней назад

      @yamyamyum may god bless you

  • @MrZH6
    @MrZH6 2 года назад

    Awesome!

  • @nguyenthanhhien3333
    @nguyenthanhhien3333 5 лет назад

    thank you very much !

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

  • @amielwexler1165
    @amielwexler1165 2 года назад

    .