Maximum flow Minimum Cut Algorithm

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

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

  • @amandabrown1696
    @amandabrown1696 2 года назад +36

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

  • @ihaveskillissue69
    @ihaveskillissue69 3 года назад +8

    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.

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

    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

  • @humza_shah
    @humza_shah 6 месяцев назад +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 Месяц назад

      Thank you ❤

  • @DD-uh5to
    @DD-uh5to 2 года назад +1

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

  • @liv3580
    @liv3580 11 месяцев назад

    best explanation i've seen for this topic so far

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

    Awesome Video, Really Informative.
    Commenting for RUclips Algorithm

  • @pradeexsu
    @pradeexsu 4 года назад +5

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

  • @allgood2176
    @allgood2176 Месяц назад

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

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

    Amazing explanation. Understood in one go!

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

    YOU EXPLAIN SO WELLLL thank youu

  • @jdcasanasr
    @jdcasanasr 3 года назад +1

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

  • @gokulvellingiri4445
    @gokulvellingiri4445 3 года назад +1

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

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

    Very well explained

  • @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 2 года назад

      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

  • @259mit
    @259mit 5 месяцев назад

    Best NF video

  • @zippykat6517
    @zippykat6517 Месяц назад

    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?

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

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

    • @Dule-my1yc
      @Dule-my1yc 2 года назад

      I'm mindblown every time haha

  • @imtiredgoodnight
    @imtiredgoodnight 3 года назад +1

    Great video and channel, very well explained.

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

    THANK YOU SIR

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

    Thank you mate

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

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

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

    Great job!

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

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

    really well explained

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

  • @max-_-6352
    @max-_-6352 3 года назад

    Wow this saved me for my test tmr thanks heaps!

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

    This saved my exam thank you so much

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

    Hi Mrs, I'm studying are you proud?

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

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

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

    • @lauminator
      @lauminator 11 месяцев назад

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

  • @lilbigger5387
    @lilbigger5387 2 месяца назад

    my teachers say cut from top to bottom

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

    Video so we’ll done ✅

  • @conxx1333
    @conxx1333 2 месяца назад

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

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