Max Flow Ford Fulkerson | Network Flow | Graph Theory

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

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

  • @sixtenmuller8823
    @sixtenmuller8823 9 месяцев назад +29

    Watching this in 2023 for my exam in Algorithm and Datastructures, love the explanation

    • @Iam_number_one
      @Iam_number_one 4 месяца назад +1

      where do you study bro ?

    • @UndercoverDog
      @UndercoverDog 2 месяца назад +1

      ​In so sure hes also German haha ​@@Iam_number_one

  • @ZantierTasa
    @ZantierTasa 2 года назад +23

    Good video, but there's a few things that could be improved.
    Residual edge is incorrectly defined at 6:00. At 4:20 he says you're probably wondering what a residual graph is, and then he proceeds to use the word residual before defining it!
    In Ford-Fulkerson, we assume each edge has an edge in the opposite direction. Where the capacity is only given in 1 direction, set the other direction's capacity to 0.
    Assign a flow of 0 to each edge, and then as the algorithm proceeds, the flow on each edge can be changed. But when you change the flow of an edge to x, you MUST assign -x to the flow in the opposite direction. This is NOT called a "residual". The residual exists in both directions.
    The residual (which means "quantity remaining") of an edge is what at 7:29 he calls "remaining capacity".
    It is simply the capacity of the edge minus the current flow. i.e. If the residual is > 0, there is still room for more flow. The residual graph is just the whole set of residual edges.
    The word saturate in general can mean "fill until no more can be held". In this case, a saturated edge has residual == 0.

  • @sovathanaheng6673
    @sovathanaheng6673 5 лет назад +74

    You spent less time than my Prof to explain this and you nailed it. Awesome!

    • @yoavmor9002
      @yoavmor9002 Год назад +3

      My prof is so old and senile I swear to God he was out there helping Alan Turing crack the enigma back in the day

    • @kaiyueguo1624
      @kaiyueguo1624 Месяц назад +1

      @@yoavmor9002 lol

  • @harshitshukla36
    @harshitshukla36 4 года назад +81

    My thoughts when I first saw this algorithm 4:17 - 4:23

    • @sagebaram5951
      @sagebaram5951 3 года назад +2

      Literally said it out-loud in zoom class last week ... accidentally.

    • @weaponkid1121
      @weaponkid1121 3 года назад +4

      @Archer Grayson lmao u really made two accounts for this

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

    I would thank my professor explaining the algorithm so terriblely otherwise I won't find this awesome channel!

  • @famefurqan5937
    @famefurqan5937 4 года назад +9

    I wonder why this video is not highlighted in the search results. This is a wonderful video with effective teaching. You have done a good job William. Please Keep it going for lot more people to benefit!

  • @hidayatkhan412
    @hidayatkhan412 5 лет назад +9

    This is the best algorithm channel on youtube, thank you for this video.

  • @elisabethwaldron3192
    @elisabethwaldron3192 9 месяцев назад +1

    Only video that explains the concepts clearly without confusing the mess out of you🤣

  • @salmanfariss
    @salmanfariss 3 года назад +24

    Amazing explanation and I love the animation as well! I think it is worth pointing out that the key observation that the sum of the bottlenecks (found in each augmenting path) equals the max flow is only true because we assumed the initial arc flow is 0 for each arc. If we do not assume this, then you need to add the initial value of the flow (of the graph) to the sum of bottlenecks as well.

  • @yaelyacobovich397
    @yaelyacobovich397 4 месяца назад

    Best series on youtube yet

  • @v0nnyboy
    @v0nnyboy 6 лет назад +35

    Amazing as always !! The impact these videos will have over time will be phenomenal ... Let my comment bear testimony to that prediction ...

  • @ericandrade3510
    @ericandrade3510 5 лет назад +17

    Love your network flow playlist, getting ready to watch it all again for the 2nd time. Great videos :D

  • @makii1715
    @makii1715 5 лет назад +8

    Best explanation!! I watched some videos but this one was really in detail, giving examples and again repeating what a risidual network acually is, how capacities work and the principle of augmenting paths. Thanks a bunch my assignment was even fun when I understood it thanks to you~

  • @mere_illusion
    @mere_illusion 4 года назад +42

    someone give this man a GOLD......wait this isn't reddit

  • @yuhao8430
    @yuhao8430 4 года назад +9

    This is so awesome!! Thank you! How come people dislike it?? 18 university prof?

  • @--..__
    @--..__ 3 года назад

    this is so clear. my professors explanation was over an hour & made no sense. and you didn't oversimplify either! cheers

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

    i have an exam in an hour , i just love u

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

    Thanks William, your videos have already helped to get Tarjan's algorithm and this video is super clear, as well! ;-)

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

    Very nice explanation
    Very clear
    I love this so much

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

    Really well done! Best video for Max flow i have seen so far!

  • @beibeixiong5660
    @beibeixiong5660 5 лет назад +2

    Your explanation is so clear! Also, I love the illustrations. Keep up the good work!

  • @gergeerew6811
    @gergeerew6811 4 года назад +3

    Maybe when people learn theses concepts by themselves rather than being forced by the college it will be easier for them to understand. Anyway this video is awesome. Brief and clear. Thank you so much.

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

    wached 3 videos before that didn't help me, I'm glad you did

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

    Great work on this! One of the clearest explanations I have seen

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

      Can you make one video on Push-Relabel algorithm also?

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

    very good and clear video! I can now understand what is going on in the reverse operation!

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

    This is beautiful, thank you so much!

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

    Great Explanation

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

    love your stuff, now I need to rewatch it to sink it xd

  • @mukul3159
    @mukul3159 Год назад +2

    But what is a residual graph? You went straight to augmenting path.

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

    Thank you for your helpful explanation!!!

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

    Great explanation!

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

    Appreciate the videos! I'm in an operations research course and it's hard finding clips on some of these algorithms!

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

      If Timotheus' pole has a network flow capacity of 8 units spunk along its edge, delta net, how much bottleneck maximum flow can Timotheus' hole take before it fissures?

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

    teacher thanks. Muchas gracias con lo poco que entiendo ingles me ayudaste gracias profe.

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

    best youtube university

  • @sharmaanuj334
    @sharmaanuj334 11 месяцев назад +1

    Residual edges is more like an undo
    In augmenting paths, we can only select the path whose remaining capacity is greater than zero

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

    Awesome introduction, thanks!

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

    Thanks William, that was the best video i have seen for Residual Graphs and Augmenting paths, and trust me i saw many. You managed to make me undestand what my professor's couldn't in 100 silides.

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

    Best explanation. Thanks!

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

    Awesome video man, life-saving. Very well explained

  • @viralforeverr
    @viralforeverr 9 месяцев назад

    thank you

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

    Very useful. Makes good sense! :D

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

    how did the 4th/last augmented path had bottleneck value - 6?

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

    Thank you.

  • @SG-kn2jl
    @SG-kn2jl 3 года назад

    Thanks mate appreciate it

  • @user-uy1sl4sk3f
    @user-uy1sl4sk3f 6 месяцев назад

    Thanks!

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

    great video! keep it up :D

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

    Not for someone who's trying to understand this for the first time. If one already knows, animations are nice.

  • @jenweatherwax7113
    @jenweatherwax7113 3 года назад +2

    I got totally lost around 4:47 when he starts talking about edges being saturated...? And what is a residual graph? And I don't remember depth first search... What if there are two bottlenecks in the graph?

    • @ZantierTasa
      @ZantierTasa 2 года назад +3

      Good video, but there's a few things that could be improved.
      Residual edge is incorrectly defined at 6:00. At 4:20 he says you're probably wondering what a residual graph is, and then he proceeds to use the word residual before defining it!
      In Ford-Fulkerson, we assume each edge has an edge in the opposite direction. Where the capacity is only given in 1 direction, set the other direction's capacity to 0.
      Assign a flow of 0 to each edge, and then as the algorithm proceeds, the flow on each edge can be changed. But when you change the flow of an edge to x, you MUST assign -x to the flow in the opposite direction. This is NOT called a "residual". The residual exists in both directions.
      The residual (which means "quantity remaining") of an edge is what at 7:29 he calls "remaining capacity".
      It is simply the capacity of the edge minus the current flow. i.e. If the residual is > 0, there is still room for more flow. The residual graph is just the whole set of residual edges.
      The word saturate in general can mean "fill until no more can be held". In this case, a saturated edge has residual == 0.

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

    You sound a bit like Ross Geller from time to time lol! Great material tho, much appreciated hah!

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

    thanks sir 😊

  • @man-kityau21
    @man-kityau21 4 года назад +1

    Is there a particular reason why the "maximum flow" calculated using the "sum of bottleneck values"? Instead of using the "sum of outflow from the source node"?
    I found the "sum of outflow from the source node" easier to interpret, that's all.

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

      The bottleneck approach is more useful to understand min-cut. Looking at the capacities that are actually filled gives you more information on how to reconstruct the optimal answer than looking at the outflow from the source. Sometimes, designing network flows is also easier to come about if you think about it in terms of min-cut.

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

    great explanation. thanks for the video and quality explanation with the visualizations!

  • @paretodeficiente9586
    @paretodeficiente9586 4 года назад +2

    I have a doubt: why we have to compute the augmenting path (s -> 0 -> 3 -> t), if the arrow goes from 3 to 0 (3 -> 0), and not from 0 to 3 (0 -> 3)? Thanks.

    • @ahlahous8128
      @ahlahous8128 3 года назад +2

      He said at ( 9:09 )that we can use the residual edge, we have created. So basically we used the residual edge 0->3

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

      @@ahlahous8128 Thanks!

  • @noelnakka1056
    @noelnakka1056 11 месяцев назад

    Can you please make videon busacker and gowen method for network flow

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

    From what time the F-F algo actually starts on example?

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

    What about push relabel. Its not in the playlist!!

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

    Could you explain how you came at 2/100 at 11:15 ?

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

    At 2:42, the max flow is 7. But I am not able to get any min-cut of value 7, the least I cab generate is 8. Can anyone find a mincut?

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

    #Excelent!

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

    if it weren't for youtube, i wouldn't be graduating college

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

    which tool do u use for animation ?

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

    You are the guy from data structures crash course by freecodecamp right??

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

    He took an augmenting path and augmented all over the place

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

    we miss one or 2. checkout hieros gamos..

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

    Can you please teach the same thing to our professor who is teaching us the network flow. He is trying to explain the same thing to us from last 3 lectures and out of 250 not even 25 of us is able to understand the same.

  • @kroposman2302
    @kroposman2302 4 года назад +3

    Great video, shitty algorithm

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

    was this video supposed to be revision or first time learning? bc if it was for learning it was terrible cant lie

    • @WilliamFiset-videos
      @WilliamFiset-videos  Год назад

      What is missing? Anything I can clarify?

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

      @@WilliamFiset-videos you skimmed past probably the most confusing part of all of this: residual flow

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

    εσπασες μας

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

    8:08 😑😑

  • @EL-KHABIR
    @EL-KHABIR Год назад

    Algorithme Ford-Fulkerson (Flot maximal) Méthode marquage
    ruclips.net/video/YnKXJAxUAu4/видео.html

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

    I WANNA KISS THIS MAN HOLY FUCK THIS SAVED ME A LOT OF TIME

  • @user-hb9cl9to3j
    @user-hb9cl9to3j 3 года назад

    13:25

  • @blade661
    @blade661 9 месяцев назад +1

    Useless explanation

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

    Why not just do the opposite of a shortest path algorithm? wouldn't that give the maximum flow?

  • @Gabriel-yk4it
    @Gabriel-yk4it 2 года назад +1

    i dont understand shit

  • @cem9927
    @cem9927 4 месяца назад

    poor explanation ! make an example and solve it instead of bla bla

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

    i now understand it less after watching, f***....

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

    Hold on....isn’t this the guy from 3b1b?

  • @ananyamenon8839
    @ananyamenon8839 Год назад +5

    terrible explanation, not clear at all

    • @lucasmertens1625
      @lucasmertens1625 3 месяца назад +2

      There is a lot good work in this video. At least give a hint on what is not clear to you. I think if you have your display and sound on, it is easy to follow and well explained

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

    makes no sense

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

    voice is copy of bill gates

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

    i dont get it dude you explain too fast cant keep up disliked

  • @GANDHIXtv
    @GANDHIXtv 11 месяцев назад

    Good try but wrong information in some parts.

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

    thank you