Maximum flow Minimum Cut Algorithm

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

КОМЕНТАРІ • 56

  • @amandabrown1696
    @amandabrown1696 3 роки тому +46

    The "water through the driver side" explanation really helped me understand which paths should and shouldn't be counted. Thanks!

  • @vivianoranges
    @vivianoranges 2 роки тому +6

    When they taught networks at school, I missed the topic and I have my HSC (NSW) standard/general maths exam in a week so this really saved me. It's a bit tedious, but going through each cut one by one visually to find the minimum definitely helped clarify my understanding! Massive thanks😭

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

      for me its in 12 hours and im not ready

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

    I love how creative you are with examples. Congrats mate!

  • @DD-uh5to
    @DD-uh5to 2 роки тому +1

    i need you to know that youre saving my life right now thank you so much

  • @RetiringMotivation
    @RetiringMotivation Місяць тому

    Wow, You're so great at explaining and teaching, I have my external math exam tomorrow, and this was the one I got stuck on, but you made it so easy to understand and figure out. Tysm 🙏, you're great man!

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

    best explanation i've seen for this topic so far

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

    Great one. I am so impressed with your driver and passenger concept.

  • @pradeexsu
    @pradeexsu 4 роки тому +5

    Thanks joel 😊 i really love the way you explain the concept. Thank you so much ❤️🙏 for amazing explanation.

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

    Amazing explanation. Understood in one go!

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

    Thank you so much for good videos, it is so helpful to get clear and step by step explanations on concepts. Really appreciate your teaching!
    I was wandering if there is a last cut that can be made: Starting from E(A,C) -> E(C,D) -> E(D,E) -> E(D,B) -> E(A,B)

    • @Dule-my1yc
      @Dule-my1yc 3 роки тому

      I don't think that would work, because when you are making that last cut through (A,B), your cut is going downward rather than upward. Although you have managed to cut through each line only once, you won't be able to work out the minimum cut maximum flow. The car (as Mr Speranza mentioned it) will not be moving at the top of the page as every single other cut had done, rather it would be moving downwards

  • @iremmatasoy
    @iremmatasoy Місяць тому

    best video ever on this topic. BEST

  • @theCRGlife
    @theCRGlife 4 роки тому +2

    Awesome Video, Really Informative.
    Commenting for UA-cam Algorithm

  • @ry3833
    @ry3833 10 місяців тому

    YOU EXPLAIN SO WELLLL thank youu

  • @sumitar6478
    @sumitar6478 4 роки тому +2

    Very well explained

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

    Great video and channel, very well explained.

  • @ihaveskillissue69
    @ihaveskillissue69 3 роки тому +9

    Got confused when you were talking about driver's side and passenger side, then I realized you are Australian! Regardless amazing video! Cheers from the States.

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

    Good job helped me get good mark, very good explanation 👍

  • @259mit
    @259mit 8 місяців тому

    Best NF video

  • @zippykat6517
    @zippykat6517 4 місяці тому +1

    I was wondering if there is any way to know if you have gotten all the cuts? For spanning trees you can see that the number of edges is equal to the number of vertices, minus 1. Is there some rule for cuts too?

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

    THANK YOU SIR

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

    I'm wondering how do they make these kind of videos where there is an invisible board

    • @Dule-my1yc
      @Dule-my1yc 3 роки тому

      I'm mindblown every time haha

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

    Great job!

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

    Thank you mate

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

    really well explained

  • @max-_-6352
    @max-_-6352 3 роки тому

    Wow this saved me for my test tmr thanks heaps!

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

    This saved my exam thank you so much

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

    If the start pipe is on the right and the sink is on the left is it better to re-draw the pipe network from left to right and then do the algorithm? Or would it be better to just do the algorithm and switch the drivers side.
    Thanks for the video by the way! 👍

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

      How about just turning your page upside down?

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

      @@JoelSperanzaMath Yes that works :) thanks for all your math help I've finished my Networks topic successfully 👍

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

    Great video, but isn't there an 8th cut hat goes through AC, CD, DE, DB, AB?

    • @JoelSperanzaMath
      @JoelSperanzaMath  3 роки тому +3

      Good question and it highlights the most common source of error in this kind of question. The cut you describe is fine through AC, but if you then "drive your car" through CD the "water" will be flowing into the "driver's side". Remember when making cuts the "water" can only ever flow in the "passenger side".

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

      @@JoelSperanzaMath But isn't C3 going through CD?

  • @aybuke9495
    @aybuke9495 4 роки тому +2

    Hello thanks for video. But I didn't understand why you ignored "5". I think c5 should be 1+3+5+3 ?Am I wrong?

    • @JoelSperanzaMath
      @JoelSperanzaMath  4 роки тому +1

      I'm ignoring 5 because that water is flowing away from the sink, not towards it. In the video, I explain water needs to follow in the "passenger side" of the car, not the "driver side".

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

      @@JoelSperanzaMath Aaa got it. I missed the that part of video, sorry. Thanks for explanation😊❤

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

    One cut is missed 11-3-5-5-8. Although it doesn't matter.

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

      Well, according to Joiel it does matter, otherwise the algorithm doesn't work!

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

    Okay, but how do you do this on a 1000-node, fully connected graph?

  • @humza_shah
    @humza_shah 9 місяців тому +3

    Awesome video! I found another cut that you missed. The cut that represents the partition of the nodes {A, D}. So drive up through A-C. Then turn right through C-D. Then up through D-E. Then left through B-D. Finally, up through A-B. This still cuts A off from E completely since the car goes from the bottom all the way to the top. The way I think about cuts for network flow problems is partitioning nodes into every possible subset of nodes (always including A and excluding E). So we have {A}, {A, B}, {A, C}, {A, D}, {A, B, C}, {A, B, D}, {A, C, D} and {A, B, C, D} thus 8 cuts in total. To connect with your cuts. c1 = {A}, c2 = {A, B}, c3 = {A, B, D}, c4= {A, C}, c5 = {A, B, C}, c6 = {A, B, C, D} and c7 = {A, C, D}. The only one we are missing is {A, D}. Thankfully, since {A, D} = 11+5+5+8 the min-cut/max-flow solution is still correct but I thought it might be worth pointing out to help with not missing any cuts! Hope this helps anyone to have a systematic way in finding and not missing any cuts.

    • @Shoeb-D
      @Shoeb-D 4 місяці тому

      Thank you ❤

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

    Video so we’ll done ✅

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

    my teachers say cut from top to bottom

  • @adventurer2395
    @adventurer2395 19 днів тому

    1:48 hehehe

  • @kingbreaux
    @kingbreaux 4 роки тому +5

    Hi Mrs, I'm studying are you proud?

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

    An average student would spend half an hour doing this method - stuffing the exam. What if you miss a cut - disaster....

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

    but the driver is on the left side side ,in real car right

  • @adventurer2395
    @adventurer2395 18 днів тому

    The passenger/drive analogy does not translate well to a global audience and confused me more. I also did not understand the why behind this.

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

    thanks, super clear, like ur examples