Max Flow Ford Fulkerson | Network Flow | Graph Theory

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2025

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

  • @sixtenmuller8823
    @sixtenmuller8823 ปีที่แล้ว +52

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

    • @Iam_number_one
      @Iam_number_one 9 หลายเดือนก่อน +1

      where do you study bro ?

    • @UndercoverDog
      @UndercoverDog 7 หลายเดือนก่อน +1

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

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

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

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

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

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

      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 6 หลายเดือนก่อน +1

      @@yoavmor9002 lol

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

      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.

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

      Oh! My god! I'm reading the famours book: "computational complexity", No matter how many times I've read the text about the "MAXIMUM FLOW" section, I couldn't understand it, until I found this video.
      Now I suspect those professors were trying to make the knowledge as difficult as possible in order to protect their power. Even I could fully understand this problem now, when I re-read the text about the "maximum flow" in this book, I still don't know what they are talking about.

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

    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!

  • @ZantierTasa
    @ZantierTasa 3 ปีที่แล้ว +40

    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.

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

      thank you!

    • @marfa_rfa
      @marfa_rfa 2 หลายเดือนก่อน +1

      Thank you so much. I am struggling with this so much. Would you have a book or website that could explain this in a completely clear way. I still struggled with this video.

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

      @@marfa_rfa I think the Wikipedia page on Ford-Fulkerson gives a pretty nice overview, although it does use some very mathsy notation. I'm sure there are other great resources out there, maybe lecture notes, but I don't know of any myself, sorry.

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

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

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

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

    • @weaponkid1121
      @weaponkid1121 3 ปีที่แล้ว +6

      @Archer Grayson lmao u really made two accounts for this

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

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

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

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

  • @Uthalerebaba-nr4qi
    @Uthalerebaba-nr4qi 4 หลายเดือนก่อน +2

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

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

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

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

    Best series on youtube yet

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

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

  • @--..__
    @--..__ 3 ปีที่แล้ว

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

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

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

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

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

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

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

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

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

    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.

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

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

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

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

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

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

    Very nice explanation
    Very clear
    I love this so much

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

    Thank you so much for this!

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

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

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

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

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

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

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

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

    This is beautiful, thank you so much!

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

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

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

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

      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?

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

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

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

  • @0xJuIian
    @0xJuIian 2 ปีที่แล้ว

    Great explanation!

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

    Thank you for your helpful explanation!!!

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

    Awesome introduction, thanks!

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

    Awesome video man, life-saving. Very well explained

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

    Best explanation. Thanks!

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

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

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

    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?

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

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

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

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

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

    damn now I understand it, my professor f.. failed to teach it at least to me

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

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

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

  • @ShalokSharma-f2z
    @ShalokSharma-f2z 3 หลายเดือนก่อน

    does dfs really choose edges in random order

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

    10:48 Why random?

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

      @@ahlahous8128 Thanks!

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

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

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

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

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

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

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

    Very useful. Makes good sense! :D

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

    which tool do u use for animation ?

  • @SG-kn2jl
    @SG-kn2jl 3 ปีที่แล้ว

    Thanks mate appreciate it

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

    Thank you.

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

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

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

    thank you

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

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

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

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

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

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

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

    Thanks!

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

    great video! keep it up :D

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

    thanks sir 😊

  • @EL-KHABIR
    @EL-KHABIR 2 ปีที่แล้ว

    Algorithme Ford-Fulkerson (Flot maximal) Méthode marquage
    th-cam.com/video/YnKXJAxUAu4/w-d-xo.html

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

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

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

    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.

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

    He took an augmenting path and augmented all over the place

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

    we miss one or 2. checkout hieros gamos..

  • @cem9927
    @cem9927 8 หลายเดือนก่อน +1

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

  • @reamabdulsalam524
    @reamabdulsalam524 24 วันที่ผ่านมา

    Too fast !!!!I could not understand any word !!!! Your graph is very clear but too much detailed and confusing too much talking and poor explaining

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

    8:08 😑😑

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

    One simple example is asking too much, I suppose. Keep it simple and add complexity, not the inverse. Maybe next time.

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

    #Excelent!

  • @밑에시간누르면광고없
    @밑에시간누르면광고없 3 ปีที่แล้ว

    13:25

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

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

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

    Worst Explanation

  • @Abhishek-fe3zs
    @Abhishek-fe3zs หลายเดือนก่อน +1

    Terrible explanation

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

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

  • @Gabriel-yk4it
    @Gabriel-yk4it 2 ปีที่แล้ว +2

    i dont understand shit

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

    Great video, shitty algorithm

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

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

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

    εσπασες μας

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

    r u angel ?

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

    Useless explanation

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

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

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

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

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

    makes no sense

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

    voice is copy of bill gates

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

    terrible explanation, not clear at all

    • @lucasmertens1625
      @lucasmertens1625 8 หลายเดือนก่อน +3

      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.

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

    thank you

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

    11:34