14. Incremental Improvement: Matching

Поділитися
Вставка
  • Опубліковано 16 жов 2024
  • MIT 6.046J Design and Analysis of Algorithms, Spring 2015
    View the complete course: ocw.mit.edu/6-0...
    Instructor: Srinivas Devadas
    In this lecture, Professor Devadas continues with the topic of network flow.
    License: Creative Commons BY-NC-SA
    More information at ocw.mit.edu/terms
    More courses at ocw.mit.edu

КОМЕНТАРІ • 39

  • @adrianbona
    @adrianbona 6 років тому +12

    You're rocking it, Srinivas 🎉

  • @Jincheker
    @Jincheker 6 років тому +24

    Max-flow min-cut theorem and the proof starting from 17:00

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

    This whole series is awesome and the instructors are amazing. So full of energy and with amazing teaching skills. Thank you so much all of you :)

  • @coding99
    @coding99 3 роки тому +5

    31:25 professor enjoying his frisbee skill

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

    in the proof from 17:00-35:00
    Isn't he just proofing this for the special cut he defined? But the first part of the theorem states |f| = c(S,T) for ANY S,T cut

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

      max flow |f| = some c(S,T) cut..... not any I think. some (S,T) cut may have a larger capacity which is okay since all we need id f < any (S,T) cut.
      here , he just showed that there is always some (S,T) cut out there such that |f| = capacity of that (S,T) cut.
      did I make sense?

  • @dragnet232
    @dragnet232 8 років тому +5

    outstanding

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

    Good explanation

  • @abhi220
    @abhi220 7 років тому +4

    at 42:49, I didn't understand why are there 2 billion iterations? Doesn't it keep oscillating between the two paths?

    • @dimakuv
      @dimakuv 7 років тому +9

      There is no error in the lecture. In this patological case, the residual capacity of the augmenting path is "1" on each iteration (because the edge with minimum capacity is either a->b or b->a). At the same time, the maximum flow of this graph is 2 billion: there are 2 billion units going out of source (1 billion in s->a and 1 billion in s->b); you can also see it in terms of the sink, again there are 2 billion units coming in sink. So, to achieve the maximum flow, we need 2 billion add-1-unit iterations.

    • @FunnyMartix
      @FunnyMartix 5 років тому +1

      @@dimakuv I don't understand why you can't do s-a-t and skip the a-b or b-a bottleneck. Thanks in advance!

    • @blifeng651
      @blifeng651 5 років тому +2

      ​@@FunnyMartix For some path-search stragety, it may select what you mentioned( path: s->a->t), but it's also possible for other stragety it always selects the s->a->b->t and s->b->a->t alternately,which will lead to the specific 2 billion iterations. After all, this is just a demostration for bad case of Ford-Fulkerson Algorithm. Hope this make sense to u.

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

      try to manually do the ford-fulk algo , but always choose the bad path (s-a-b-t) and (s-b-a-t)....and see what happens. You'll easily see why it will run 2 billion times :)

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

      @@FunnyMartix the reason is the Ford Fulkerson does not specify the augmenting path to pick if there are multiple choices. In the worst case if we are not lucky, it could pick the bad path always and the algo just runs 2 billion iterations.

  • @scottanderson2871
    @scottanderson2871 7 років тому +1

    This helped a lot

  • @YashGupta._.
    @YashGupta._. 7 років тому +2

    The last example ,from what I understood allows team NY to win only one game w.r.t the games it plays with the other 5 teams ,but can there be a case where the team wins a game against a team we have not considered and hence not allowed team 5 to still make it ?
    Please correct me if I am wrong

  • @rayzhang336
    @rayzhang336 8 років тому +35

    I think it will be better that the camera always focuses on the blackboard.

    • @learningDeepL
      @learningDeepL 7 років тому +12

      No thanks! I like that it focuses on the professor. You can use the course slides from the website.

    • @jerryhung7068
      @jerryhung7068 6 років тому +1

      I also think it will be better that the camera always focuses on the blackboard.

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

      No! It is so much fun watching this professor. He is entertaining and can explain things really well.

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

    how would you apply same concept to cricket tournaments where there are 3 possible outcomes of each match + net run rate in case of equal points?

  • @dhruvjoshi8744
    @dhruvjoshi8744 4 роки тому +3

    1:21:00 Can someone help me out? srini said that it has capacity infinite in that case it makes sense in not considering it in min cut value cuz it is limited by the source (s), but we are going from 'S' to 'T' for those flows but the infinite flow is from "T" to "S" (S and T are the partition that we obtained after cut) so it must be -infinite ....why don't we consider the flow through cut here as we did in (ua-cam.com/video/VYZGlgzr_As/v-deo.html)....... I understood the capacity of the middle region is infinite because they are limited by the incoming flow from source(so that will be adjusted accordingly).

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

      The trick is that in a directed graph, we only have to cut the edges that go from the resulting S to T. So, intuition wise, we are separating T so that flow can't get from s to t. Think about it as if s is a battery and t is a light bulb. en.wikipedia.org/wiki/Minimum_cut#With_terminal_nodes may help also

  • @dtung2008
    @dtung2008 11 місяців тому

    Did the professor give a wrong answer to his baseball example or am I the one who thinks wrong?
    If the number of games between the leading teams (which is 30 in the example) is greater than the capacity to the drain (26), then Detroit is out because some games will exceed the drain capacity.
    Only when total capacity from the source, said Cs, is less than or equal to total capacity to the drain (26) then one needs to run network flow algorithm to decide. In such case only if the maximum flow is smaller than Cs then Detroit is out, because that means some game is going to add to a team with saturated capacity to the drain to eliminate Detroit.

  • @thirum5940
    @thirum5940 8 років тому +2

    At 1:08:31, how the capacities of edges are infinite?

    • @dimakuv
      @dimakuv 7 років тому +5

      The capacities of inner edges (between the "team-pairs" layer and "teams" layer) are irrelevant and so are set to infinity. Each of these edges indicates the number of games a particular team won when playing against some other team (for example, flow through edge "1-2" -> "1" shows how many times Team 1 won while playing against Team 2). Clearly, the flow through each of these edges is bounded by the number of games each team-pair has to play. Since these numbers are already specified as capacities of source-edges and sink-edges, they effectively restrict max flow that can go through inner edges. Thus, there is simply no need to put additional restrictions on inner-edge capacities.

    • @irvinge4641
      @irvinge4641 6 років тому +4

      @@dimakuv shit im copying parts of your comment for my hw

  • @georgeharrison6108
    @georgeharrison6108 7 років тому +3

    Some other example would have helped students outside MIT. The league structure and scores seems a bit obfuscating.

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

    I got lost with the baseball part, don't understand at all

  • @luojihencha
    @luojihencha 4 роки тому +3

    42:10 I thought it was really 2 billion iterations

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

      it is from clrs

    • @michaeljosephrosenthal
      @michaeljosephrosenthal 2 роки тому +1

      it is, because each edge has capacity 10^9 = 1 billion, not 109 (which is what I personally read at first)

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

    🚀❤

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

    Alexaaaaaander

  • @PureClarityAbsolute
    @PureClarityAbsolute 8 років тому +20

    who the f** is holding the camera!?
    Please restore to previous algorithms for camera's motion. This video involves too much movement of camera.

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

      Dude, these are pre-recorded and uploaded in batches, it's not that they are gonna make adjustments to the filming based on viewers' feedback.