Ford-Fulkerson in 5 minutes

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

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

  • @ceedob
    @ceedob 8 лет назад +1988

    This 5 min video made more sense than 2 weeks of university lectures

    • @n4thanfv
      @n4thanfv 8 лет назад +6

      +Chris Dobson in my case it made sense, whereas the two hour class I had about the subject, didn't.

    • @joshua50101
      @joshua50101 8 лет назад +14

      There's sth called "redoublement". That's French. Don't be decieved. it's not that the two weeks of university lectures didn't have any effect on you. Think this through dude. :)

    • @WeMakeSuperLuckyFace
      @WeMakeSuperLuckyFace 8 лет назад

      ^ That explanation is so goddamn true!

    • @WeMakeSuperLuckyFace
      @WeMakeSuperLuckyFace 8 лет назад +19

      The teachers know the material very well, but they don't understand it, so they don't teach their students to understand it, the class just throw students in a meatgrinder that tests them on whether they "know" it.

    • @takieddine1341
      @takieddine1341 7 лет назад

      yep indeed xD

  • @jupfnova
    @jupfnova 8 лет назад +180

    I'm trying to catch up with the current semester in businessengineering and your video helped me get through ~ 50 pages of lecture in no time. Big thanks from Germany

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

      whats is business engineering? Isn't that just business?

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

      Thats the name for industrial engineering in German@@allanjoseph3164

    • @me-it9jn
      @me-it9jn Год назад +6

      50 pages on ford fulkerson is crazy

    • @PorkBoy69
      @PorkBoy69 9 месяцев назад +3

      @@allanjoseph3164 Engineering lite for people who can't do engineering but have too much pride to just study BA

  • @DC-dn2di
    @DC-dn2di 3 года назад +58

    I literally watched a million lectures and spent so much time trying to understand this residual graph thing, and you just explained it in 5 minutes. Thank you, you are doing the Lord's work

  • @ucheiam
    @ucheiam 6 лет назад +227

    As well as his rules about equillibrium and making sure to update the flow by the value of the bottleneck. Remember these two hard and fast rules.
    1. You can only go Forward (in the correct direction of a path) if the path has FLOW TO ADD e.g 8/10 still has 2 more to add so you can use it but 4/4 is capped.
    2. You can only go Backward (in the opposite direction of a path) if the path has FLOW TO GIVE e.g 6/8 has 6 to give but you can't go backwards on 0/4 because it has 0 flow to subtract.

    • @dingdongskie
      @dingdongskie 4 года назад +1

      if it has 4/4 can i go back to make it 0/4? or how about 2/4 to make it 0/4?

    • @jurajmarincic8715
      @jurajmarincic8715 4 года назад +4

      @@dingdongskie sure you can but only if the arrow goes the opposite way from where you need to go

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

      Thank you

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

      Godsend, thank you

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

      That's what he meant by "non full" forward path and "non empty" backward path but yeah

  • @manishpatki258
    @manishpatki258 8 лет назад +26

    i watched almost 10 videos of this algorithm, but only your one made me understand everything. Especially of the backward edge.
    Nice !

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

    Tried doing this by hand and then watched this video. I have no words to describe how much work you saved me

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

    Why can't everyone be so concise? Well then we wont be able to appreciate your videos. Great effort and keep up the good work

  • @kikogol182
    @kikogol182 8 лет назад

    so many classes, books, slides and useless material that can't explain this better than you. thanks !!

  • @lolmonkyboi
    @lolmonkyboi 8 лет назад +197

    my god you are amazing please please make more videos your clarity is beyond words

    • @MichaelSambol
      @MichaelSambol  8 лет назад +33

      +Lindel L Working on some now. Thanks for the support!

    • @lolmonkyboi
      @lolmonkyboi 8 лет назад +2

      +Michael Sambol :))))) keep up the work man! this definietly gona help me pass an exam tommorow lol

    • @professor-ricardo-ifsuldeminas
      @professor-ricardo-ifsuldeminas 6 лет назад +1

      He have implemented the Naive Greedy Algorithm Approach (May not produce optimal or correct result) and not the Ford-Fulkerson algorithm. See the details on the link: www.geeksforgeeks.org/max-flow-problem-introduction/. The Ford-Fulkerson algorithm uses the residual graph concept, see more details on the link: www.geeksforgeeks.org/ford-fulkerson-algorithm-for-maximum-flow-problem/.

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

    God bless you
    best wishes for you
    I used you videos before my exam and could pass it in the best way.
    your 5 minutes videos are more efficient than a whole lecture in collage ❤❤❤❤

  • @JB-gv7pt
    @JB-gv7pt 4 месяца назад

    Bro I watched so many videos on how to do this and still could not figure it out. Not sure what yours did differently, but I'm not gonna overthink it, thank you man!!

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

    I first watched your video, got most of it but still couldn't wrap my head around it so watched a few other videos and came back to it and watched again to get a full understanding. Thank you.

  • @WeMakeSuperLuckyFace
    @WeMakeSuperLuckyFace 8 лет назад +206

    Wow, finally someone who actually understands how to meaningfully communicate ideas to other people (what's that word called... "teaching"? But I thought that's what my university was supposed to do? hmmm........)

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

    Thank you for these videos, I'm currently studying for algorithms & data structures exam and you are very clear in explaining how these algorithms work!

  • @tzu-minghuang7100
    @tzu-minghuang7100 8 лет назад +6

    this is an important algorithm where many other people explain it may go into detail and thus confused me. I looked for, like, 6~7 video explaining this algorithm, you are the best.

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

    Nice video. Thank you! Had been taught with using the residual graph and moving arrows. The idea of just using forward edges that are full or backward edges that are empty is so much easier to understand.

  • @rosaliasahputra
    @rosaliasahputra 8 лет назад

    I'm so lucky to find this video, thanks a lot! Positive comment: clear voice and clear visualization, make your explanation easy to follow. Negative comment: nothing.

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

    Thank you from a NIgerian 🇳🇬 in Canada 🇨🇦

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

      God bless. A lot of my buddies are Nigerian. 🇳🇬❤️

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

      @@MichaelSambol Then you're in good hands, mostly 😆🤣

  • @rykerdaniels3117
    @rykerdaniels3117 8 лет назад +85

    this is beyond amazing
    it took my professor an hour to discuss this
    thank you

    • @MichaelSambol
      @MichaelSambol  8 лет назад +7

      +Erio Touwa Glad you enjoyed. Please share with your classmates, thanks!

    • @n4thanfv
      @n4thanfv 8 лет назад

      +Erio Touwa I bet you didn't understand as well as you did after watching the video :D

    • @zTomatez
      @zTomatez 8 лет назад

      +Pink Freud Estudante do CSGO, e quem diria, estudante de Grafos também hahaha Muito bom o seu canal Pink!

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

    i love you man this is the first of your videos i watched but it wont be the last. i learned more in 5 min here than i did in 100 mins in the lecture last week.

  • @sakshamsharma5794
    @sakshamsharma5794 7 лет назад

    Whenever I see any video uploads from ur channel,I become a bit relaxed for the topic u covered in that video....hats off to you man!....

  • @ZzRaideMzZ
    @ZzRaideMzZ 8 лет назад

    Big thump up for you! I tried for hours on end but your five-minute video "destroyed" everything!
    Thanks man, you are awesome.

  • @abenstirling
    @abenstirling 5 месяцев назад +3

    The single reason why I am graduating college!

  • @juicyclaws
    @juicyclaws 8 лет назад +1

    This is how teaching is done right. Not often you come across it. :)

  • @epicmoffe
    @epicmoffe 6 лет назад +3

    Your videos are really good for introducing the concepts used in algorithms! Watching this together with videos from e.g. Abdul Bari is what is getting me through this AlgDat-course.

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

    This 5 min video made more sense than 14 weeks of university lectures.

    • @Warwipf
      @Warwipf 5 лет назад +3

      You had Ford Fulkerson for 14 weeks? We discussed this in like what... 30 minutes? + residual networks and the actual algorithm are missing here. Good video for what it's set out to do, no doubt, but 14 weeks..? lol

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

    Finding the Min-Cut confirms your result, which passes thru Edges: SA, AC, CD. Using an S-T cut, where S is in area A and T is in area B and directed edge starts in A and ends in B. Thanks

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

    we just had exactly that in the lecture just now from 8am- 1pm.... and in no way was my question i had answered ..... (why not choose A-C ) you clarified that for me .... thanks i hope it helps me to manage tomorrows test :)

  • @ferieldi8137
    @ferieldi8137 7 месяцев назад

    i ve been following your videos since ever ,it makes sense than all wut my teachers say in a one hour and half lecture

  • @aphasiac
    @aphasiac 6 лет назад +1

    It took my professor an hour to stumble through this. Thanks to you, I now understand this actually fairly simple algorithm.

  • @kunalkotiyal9566
    @kunalkotiyal9566 8 лет назад

    This is exactly the channel I had been searching past 2 yrs. Great explanation!

  • @costascosti3935
    @costascosti3935 8 лет назад +2

    you just explained simply in 5 mins what my lecturer couldn't in 50 mins

  • @huthayfa1723
    @huthayfa1723 6 лет назад +2

    I got the total capacity with 20 , with the following paths :
    S -> A -> D -> T = 8
    S -> C -> D -> T = 2
    S -> C -> D -> B -> T = 6
    S -> A -> B -> T = 2
    S -> C -> D -> A -> B -> T = 2
    Total = 20 , with 7 saturated edges .

  • @artnevka779
    @artnevka779 2 года назад +2

    wow that was the clearest ff algorithm explain i've ever seen

  • @廖俊翔-e1w
    @廖俊翔-e1w 6 лет назад

    Revisiting after 1 year, still the best!

  • @georgekarras56
    @georgekarras56 8 лет назад +3

    Found it really helpful to watch your video-algorithm examples for my operations research exam . Thanks for uploading it

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

    thanks man! You saved me by a few hours of struggling :)

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

    Thank you so much, you are awesome, I understand everything my prof couldn't explain in half a semester.

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

    Your videos got me through my alg class!

  • @JayWavy-me5pq
    @JayWavy-me5pq 4 года назад

    Finally, a competent explanation on this

  • @igorOK071
    @igorOK071 6 лет назад

    Your teaching style is awesome! Thanks!

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

    I have exam in 2 hours on this. Lifesaver

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

    for people looking at it and having a bipartite graph where an edge is either 0/1, you don't need to calculate bottlenecks, you just repeatedly trace a possible path.

  • @tanmaytc5384
    @tanmaytc5384 6 лет назад

    this 5 min can help me in my tomorrow exam viva,
    Thanks

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

    This man is .. our savior :)). Thank you !

  • @joelarsen806
    @joelarsen806 6 лет назад +3

    This video is amazing!
    Recommendation: Edmonds-Karp Algorithm

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

    I wish I found this video an hour ago! Good stuff thanks for the help!

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

    I was going to check the sources for this video to mention them in my homework, only to find out you studied at TUe as well xdxd, I dont know why but I found that extremely funny. How small the world is

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

    This man is a savior

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

    Omg this is so good, it makes so much more sense now.

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

    Thank you a lot tomorrow i have exam and just now I understand it ♥️🙏🏻

  • @dariayakimovich7069
    @dariayakimovich7069 9 лет назад +35

    This was really useful, thank you. An example of the minimum cut edge would be ideal too though

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

    dude, your videos are gold!

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

    legit life saver. if the sumery of the course would be as good as this video was legit would have get the easiest 100 of my life. ty so much

  • @zongzheli1283
    @zongzheli1283 5 лет назад +22

    Omg this saved my life! Just kidding, I may still fail tomorrow 😅

    • @mehdibadaoui1658
      @mehdibadaoui1658 5 лет назад +3

      so did you fail

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

      DEAD!

    • @Shashi0012
      @Shashi0012 4 года назад +1

      We need UPDATE!

    • @zongzheli1283
      @zongzheli1283 4 года назад +4

      It was my first semester in master program. The course was CS6363 Design and Analysis of Algorithms. I probably failed and wouldn’t want to check my final grade. Really bad. I def will work hard next semester.

  • @andreacerasoni9063
    @andreacerasoni9063 7 лет назад

    Man your videos literally save my life, thank you so much!

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

    this 5 minute video made more sense than my entire college degree

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

    Thank you! Clear cut explanation in just 5 mins!

  • @coordinator3039
    @coordinator3039 8 месяцев назад

    This helps when you elaborate on a reading

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

    You did more than the textbook, which didn't mention enough to even as much as know what was going on at all. Thx!

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

    Bro, in 5 minutes I understand it, now let's pray that I pass my final.

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

    yes yes sure for all of you this made more sense than lectures. Have you tried trying to understand it on a deeper level following those lectures?

  • @벤터-b8y
    @벤터-b8y 4 года назад +1

    thx from korea

  • @peepforlearning6058
    @peepforlearning6058 6 лет назад

    Perfect video, cleared my doubts, plz give a algorithm for this too

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

    you are life saver man, thanks for your great work.

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

    Congratulations for the clear example !

  • @MichaelGoodrum
    @MichaelGoodrum 6 лет назад

    Discrete math, Algorithms, Combinatorics, Graph theory. Taking those in a sequence has caused me to come back to watch this video at least 100 times.

  • @beltranlarrain5207
    @beltranlarrain5207 8 лет назад

    Thanks mate, short but precise explanation

  • @nicoreyesruiz
    @nicoreyesruiz 5 месяцев назад +1

    Gracias, saludos desde Chile

    • @MichaelSambol
      @MichaelSambol  5 месяцев назад +1

      Estoy aprendiendo español 🫡

    • @beachwave5705
      @beachwave5705 18 дней назад

      @@MichaelSambol siga aprendiendo maje

  • @tionasilue1434
    @tionasilue1434 8 лет назад +1

    Thanks a lot my man i've been looking for videos in french about this algorithm then i find your tuto... God bless you guy!!!Keep it up!!!

  • @tonychan16881
    @tonychan16881 8 лет назад

    Very clear and comprehensive explanation.!

  • @bishalmukherjee9794
    @bishalmukherjee9794 7 лет назад

    nice video. I had no concept about the algo but now i understand the thing.

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

    You just saved my life

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

    u saved me in uni dude ty so much

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

    Very good for someone just before exam.

  • @ASealofApproval
    @ASealofApproval 8 лет назад +1

    Extremely clear overview of the algorithm. Have you considered making a separate video for the corresponding proof of correctness?

  • @Hamza-ez1fz
    @Hamza-ez1fz Год назад

    this video will be likely to save my exams, thanks from France

  • @vincenguyen5793
    @vincenguyen5793 4 года назад +1

    The 227 dislikes are from profs that fail to explain how this works

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

    What an awesome and wonderful video. very lucrative. please do more on sensitivity analysis /simplex algorithm.

  • @nathanx.675
    @nathanx.675 5 лет назад

    3 lectures, 4 and a half hours of material, covered in 5 minutes, and in a better way. Sometimes I wonder how did my professors get the job...

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

    its very useful for me thanks for your clear explanation

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

    thank you so much!!!! greetings from argentina!

  • @Jeff-wp2ko
    @Jeff-wp2ko 8 лет назад

    It was a very nice and short explanation! Nice job!

  • @孙栋梁-f3d
    @孙栋梁-f3d 6 лет назад

    A very intuitive explanation, thank you

  • @Haxr-dq6wt
    @Haxr-dq6wt 6 лет назад

    I don't know why i understand people on youtube more than proffessors in the university

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

    man , you saved my life

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

    Thank you for your work. I understood everything

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

    A little contradiction in my algorithms class - professor mentioned running time is O(m * n * C) and BREADTH first search is used to find augmenting paths...found this difference interesting...I guess its not the focus of this video though. He was saying we should be using breadth first search because we are interested in the shortest possible paths.

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

    This video was perfect. Thank you.

  • @freakyfreak90
    @freakyfreak90 7 лет назад

    Nice video, this is definitely gonna help me with my programming task

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

    step by step proceeds to modify half the edges at the same time.

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

    Explanation is good and simple, can you please explain the time complexity as well?

  • @IMC5776
    @IMC5776 7 лет назад

    Thanks for the video! It made so much more sense than my university lecture haha!

  • @chenyi-d5j
    @chenyi-d5j Год назад +1

    really learnt a lot! thank you so much!

  • @OthmanPops
    @OthmanPops 7 лет назад

    chokran sahbi (y) (y) You're a life savior

  • @aishwaryasinghal6374
    @aishwaryasinghal6374 8 лет назад +16

    Amazing clarity.
    Question : Is there any criteria for finding augmentation path or is it random?

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

      it is random. The only difference between going in a certain sequence rather than another sequence is it may take more iterations for some (the while loop doesn't care). But this algorithm always gets the MAX FLOW, which is what we need. The reason it never 'gets stuck' is with the use of backwards edges which allows you to essentially 'backtrack' when the edges get clogged up.

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

      @@GucciJohanne It actually only works if all capacities are rational. If there are any irrational capacities, it might never terminate.

  • @orbitmarketing-usa
    @orbitmarketing-usa 4 года назад

    Michael is a beast

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

    man u're a life saver thanks a lot

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

    thank you so much. This explenation is pretty awesome and I finally understood that algorithm:)

  • @jsurinderveygal561
    @jsurinderveygal561 6 лет назад

    It was six weeks for me of university lectures. Please somethings on Warshall Floyd and Simple way to depict Euler proofs. Thank you for this video. Thank you very much