Max Flow Ford Fulkerson | Network Flow | Graph Theory

Поділитися
Вставка
  • Опубліковано 26 вер 2024

КОМЕНТАРІ • 110

  • @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 2 місяці тому +1

      @@yoavmor9002 lol

    • @gaurishgangwar
      @gaurishgangwar 6 днів тому

      Sometimes it is also because at this point you already have some idea of algorithm and understand some of its key concepts, so when William teaches you this you have an easier time grasping it.

  • @siuhangchen8986
    @siuhangchen8986 2 роки тому +3

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

  • @Uthalerebaba-nr4qi
    @Uthalerebaba-nr4qi 2 дні тому

    Watching this in 2024 for my exam in Algorithms, love the explanation

  • @harshitshukla36
    @harshitshukla36 4 роки тому +82

    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 роки тому +5

      @Archer Grayson lmao u really made two accounts for this

  • @ZantierTasa
    @ZantierTasa 2 роки тому +24

    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.

  • @hidayatkhan412
    @hidayatkhan412 5 років тому +9

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

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

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

  • @ericandrade3510
    @ericandrade3510 5 років тому +17

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

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

  • @--..__
    @--..__ 3 роки тому

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

  • @elisabethwaldron3192
    @elisabethwaldron3192 9 місяців тому +1

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

  • @yuhao8430
    @yuhao8430 4 роки тому +9

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

  • @DzmitryKashlach
    @DzmitryKashlach Рік тому

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

  • @beibeixiong5660
    @beibeixiong5660 5 років тому +2

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

  • @yaelyacobovich397
    @yaelyacobovich397 5 місяців тому

    Best series on youtube yet

  • @mere_illusion
    @mere_illusion 4 роки тому +43

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

  • @sumowll8903
    @sumowll8903 Рік тому

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

  • @mukul3159
    @mukul3159 Рік тому +2

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

  • @tritruong9352
    @tritruong9352 Рік тому

    Very nice explanation
    Very clear
    I love this so much

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

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

  • @tttthomas
    @tttthomas 5 років тому

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

  • @rorywilliams7375
    @rorywilliams7375 Рік тому

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

  • @robin6091
    @robin6091 4 роки тому

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

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

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

  • @sixtenmuller8823
    @sixtenmuller8823 9 місяців тому +29

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

    • @Iam_number_one
      @Iam_number_one 5 місяців тому +1

      where do you study bro ?

    • @UndercoverDog
      @UndercoverDog 3 місяці тому +1

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

  • @educationcurve8981
    @educationcurve8981 2 роки тому

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

  • @sharmaanuj334
    @sharmaanuj334 Рік тому +1

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

  • @hymnish_you
    @hymnish_you 2 роки тому

    Great Explanation

  • @longflame4414
    @longflame4414 Рік тому

    This is beautiful, thank you so much!

  • @stelioskossieris4530
    @stelioskossieris4530 3 роки тому

    Thank you for your helpful explanation!!!

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

  • @_julian
    @_julian Рік тому

    Great explanation!

  • @xbz24
    @xbz24 Рік тому

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

  • @EL-KHABIR
    @EL-KHABIR Рік тому

    Algorithme Ford-Fulkerson (Flot maximal) Méthode marquage
    ua-cam.com/video/YnKXJAxUAu4/v-deo.html

  • @thomasip9938
    @thomasip9938 4 роки тому

    Awesome introduction, thanks!

  • @ytec100
    @ytec100 4 роки тому

    Best explanation. Thanks!

  • @zekaini7617
    @zekaini7617 2 роки тому

    best youtube university

  • @alimahmoud1441
    @alimahmoud1441 5 років тому

    Awesome video man, life-saving. Very well explained

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

  • @viralforeverr
    @viralforeverr 9 місяців тому

    thank you

  • @peterulev5202
    @peterulev5202 4 роки тому

    Very useful. Makes good sense! :D

  • @tjalferes
    @tjalferes 2 роки тому

    Thank you.

  • @kells9k
    @kells9k Рік тому

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

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

  • @milindprajapat7177
    @milindprajapat7177 2 роки тому

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

  • @SG-kn2jl
    @SG-kn2jl 3 роки тому

    Thanks mate appreciate it

  • @osmankhalid2005
    @osmankhalid2005 3 роки тому

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

  • @anandiyer_iitm
    @anandiyer_iitm Рік тому

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

  • @noelnakka1056
    @noelnakka1056 Рік тому

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

  • @ShakrinJahanMozumder
    @ShakrinJahanMozumder 7 місяців тому

    Thanks!

  • @UdayTejaOriginal
    @UdayTejaOriginal 4 роки тому

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

  • @diskokaktus
    @diskokaktus 2 роки тому

    great video! keep it up :D

  • @lucianoinso
    @lucianoinso 5 років тому +4

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

  • @arunkanjoor6542
    @arunkanjoor6542 4 роки тому

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

  • @aishwaryashrestha798
    @aishwaryashrestha798 2 роки тому

    which tool do u use for animation ?

  • @narendraparmar1631
    @narendraparmar1631 5 років тому

    thanks sir 😊

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

  • @zitronensaft9110
    @zitronensaft9110 3 роки тому

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

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

  • @gabrielpereiramendes3463
    @gabrielpereiramendes3463 4 роки тому

    #Excelent!

  • @siminthesky
    @siminthesky 4 роки тому

    we miss one or 2. checkout hieros gamos..

  • @sybks
    @sybks 13 днів тому

    11:34

  • @vijaykumarsah6255
    @vijaykumarsah6255 2 роки тому

    He took an augmenting path and augmented all over the place

  • @kroposman2302
    @kroposman2302 4 роки тому +3

    Great video, shitty algorithm

  • @Poutoksereiseimaigw
    @Poutoksereiseimaigw 4 роки тому

    εσπασες μας

  • @sourabhkandari80
    @sourabhkandari80 3 роки тому +1

    8:08 😑😑

  • @ahmetnecipgorgulu4133
    @ahmetnecipgorgulu4133 4 роки тому

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

  • @EmapMe
    @EmapMe 4 роки тому

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

  • @wirito
    @wirito 4 роки тому

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

  • @cem9927
    @cem9927 4 місяці тому

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

  • @Gabriel-yk4it
    @Gabriel-yk4it 2 роки тому +1

    i dont understand shit

  • @blade661
    @blade661 10 місяців тому +1

    Useless explanation

  • @jameskaiser7474
    @jameskaiser7474 Рік тому

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

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

  • @ananyamenon8839
    @ananyamenon8839 Рік тому +5

    terrible explanation, not clear at all

    • @lucasmertens1625
      @lucasmertens1625 4 місяці тому +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

  • @GANDHIXtv
    @GANDHIXtv Рік тому

    Good try but wrong information in some parts.

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

  • @saulsalvadorhernandez9381
    @saulsalvadorhernandez9381 Рік тому

    thank you

  • @jaincoral25
    @jaincoral25 5 років тому +4

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

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