Maximum flow Minimum Cut Algorithm

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

КОМЕНТАРІ • 52

  • @amandabrown1696
    @amandabrown1696 2 роки тому +42

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

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

    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

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

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

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

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

    best explanation i've seen for this topic so far

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

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

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

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

    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.

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

    Amazing explanation. Understood in one go!

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

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

    YOU EXPLAIN SO WELLLL thank youu

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

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

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

    Great video and channel, very well explained.

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

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

  • @aybuke9495
    @aybuke9495 3 роки тому +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  3 роки тому +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 3 роки тому

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

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

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

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

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

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

    THANK YOU SIR

  • @stanley9653
    @stanley9653 2 роки тому +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  2 роки тому +2

      How about just turning your page upside down?

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

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

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

    Thank you mate

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

    really well explained

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

    Great job!

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

    Best NF video

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

    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!

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

    Wow this saved me for my test tmr thanks heaps!

  • @humza_shah
    @humza_shah 7 місяців тому +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 3 місяці тому

      Thank you ❤

  • @conxx1333
    @conxx1333 3 місяці тому

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

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

    This saved my exam thank you so much

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

    my teachers say cut from top to bottom

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

    Hi Mrs, I'm studying are you proud?

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

    Video so we’ll done ✅

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

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

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

    thanks, super clear, like ur examples