Ford Fulkerson algorithm for Maximum Flow Problem Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024
  • Ford Fulkerson algorithm for Maximum Flow Problem Example
    Watch More Videos at
    www.tutorialsp...
    Lecture By: Mr. Arnab Chakraborty, Tutorials Point India Private Limited.

ความคิดเห็น • 248

  • @LB-lj5wp
    @LB-lj5wp 3 ปีที่แล้ว +106

    I am so glad India exists, 90% of my knowledge came from you guys. Much thankful

    • @sohamshinde1258
      @sohamshinde1258 3 ปีที่แล้ว +1

      from ?

    • @LB-lj5wp
      @LB-lj5wp 3 ปีที่แล้ว +3

      @@sohamshinde1258 Indian people explaining stuff on TH-cam

    • @turtlepedia5149
      @turtlepedia5149 3 ปีที่แล้ว

      @@LB-lj5wp he is asking where are u from

    • @LB-lj5wp
      @LB-lj5wp 3 ปีที่แล้ว

      @@turtlepedia5149 Oh

    • @LB-lj5wp
      @LB-lj5wp 3 ปีที่แล้ว +1

      @@sohamshinde1258 Balkans

  • @RaynerGS
    @RaynerGS 5 ปีที่แล้ว +58

    at 11:45 my persistent doubt about this algorithm was vanished, thanks so much for your class. Well done. A salute from Brazil!

    • @nini-ic7is
      @nini-ic7is 5 ปีที่แล้ว +1

      I feel you

    • @chrisben321
      @chrisben321 4 ปีที่แล้ว +3

      @@nini-ic7is i feel both of you

    • @Framoio
      @Framoio 4 ปีที่แล้ว

      Here I am too

    • @hamdidhia6573
      @hamdidhia6573 4 ปีที่แล้ว +1

      i feel all four of you

    • @yangjiahui1213
      @yangjiahui1213 4 ปีที่แล้ว +1

      i feel all five of you

  • @nikezofficiel
    @nikezofficiel 4 หลายเดือนก่อน

    I was overwhelmed before I watched this video.
    Then I've thoroughly a great amount of information about Ford-Fulkerson method. And now I am excited to confidently use this method.
    Thank you for existing, you're a lifesaver.

  • @nobody9290
    @nobody9290 10 วันที่ผ่านมา +3

    I was confused but after seeing your video sir, I am more confused. Thank you sir

  • @dhavalchheda1626
    @dhavalchheda1626 5 ปีที่แล้ว +102

    I think many people are getting confused here regarding the back edge and it being non zero. For those who are having confusion, idea is to keep the inflow and outflow through a particular node same until it hits the Max capacity .And if it were to be zero you can't use it as a back edge hence back edge needs minimum 1. As long as their is equilibrium through a particular node and doesn't exceed capacity, you can change the flow as you want.

  • @labandaetoilista4873
    @labandaetoilista4873 2 ปีที่แล้ว +3

    I had many Problems with the Ford Felkurson Algorithmus , now after watching your video i've to the first time understood what the proffesor the hole Time in the classeroom wanted to clarify but he couldn't as well as you done !
    Many thanks

  • @youtubecommenter5122
    @youtubecommenter5122 4 ปีที่แล้ว +31

    People like you have taken me through my computer sciences degree!

  • @osmankhalid2005
    @osmankhalid2005 3 ปีที่แล้ว +33

    If we choose following paths, the same can be done in just 3 steps:
    S -> A -> B -> T = 4
    S -> A -> D -> B -> T = 6
    S -> C -> D -> T = 9
    Which makes a total of 19 :-)

    • @turtlepedia5149
      @turtlepedia5149 3 ปีที่แล้ว +8

      yes but its difficult to see the optimise path , thats why algo is there

    • @huguesaugustin7836
      @huguesaugustin7836 ปีที่แล้ว

      for S***>C****D****T wouldnt you have to subtract everything by 9

    • @yuva2916
      @yuva2916 3 วันที่ผ่านมา

      Yesss

  • @needleskane1370
    @needleskane1370 2 ปีที่แล้ว +1

    I got confused about the back step but now I understood, thank u very much

  • @shahidsiddiqui7152
    @shahidsiddiqui7152 4 ปีที่แล้ว +4

    First beautiful handwriting and second amazingly explained Thank you so much Sir.

  • @mosaic34
    @mosaic34 4 ปีที่แล้ว +1

    why cant i choose s>c>d>b>t instead of s>c>d>a>b>t,is it necessary to go with the backward edge?

  • @Bianca-zo2dm
    @Bianca-zo2dm 6 ปีที่แล้ว +2

    Is there a particular order our argumenting paths should go?
    For example, why do we not do S>A>C>D>T?

    • @anshuman17025
      @anshuman17025 5 ปีที่แล้ว +13

      You can choose any of the paths, just follow the three rules, 1. The net flow for any vertex must be zero, inflow = outflow. 2. You can only select non-full forward edges 3. You can also only choose non-zero backward edges. After all this, whatever augmenting path you take, the final answer should match.

    • @uditjec8587
      @uditjec8587 4 ปีที่แล้ว +2

      @@anshuman17025 thank you so much dear.

  • @swativekhande8655
    @swativekhande8655 4 ปีที่แล้ว +1

    Really impressive sir !!!
    I have no idea before I clear all my doubts

  • @arafatahmmed263
    @arafatahmmed263 6 ปีที่แล้ว +15

    Another ways to clear the concept ::
    Path :: SCDT -> 9
    SABT -> 4
    SADBT -> 6
    Total max flow = 19

    • @biswajeetsethi7689
      @biswajeetsethi7689 5 ปีที่แล้ว +1

      yes ... SABT is also possible ... will the answer be same ???

    • @aakashsinha9641
      @aakashsinha9641 5 ปีที่แล้ว

      I have a doubt that....i think your way of this solution is easy ....but....the above sir solution to complex ( 3rd path with opposite flow. ). .....so both way of solving are correct or not ?

    • @sayanporey6127
      @sayanporey6127 4 ปีที่แล้ว

      i also got the same answer, but then the solution is different for selecting different paths, this shouldn't be the case.

  • @harshitmehra9390
    @harshitmehra9390 3 ปีที่แล้ว +1

    Thank You so much, Sir, your teaching has warmth and guidance.

  • @mhrhabib7998
    @mhrhabib7998 5 ปีที่แล้ว

    Thanks. Very Nice, Fold up & Clear lecture. From Bangladesh .

  • @halah1995
    @halah1995 6 ปีที่แล้ว +1

    Mr:Arnab thank you very much you are the best one .

  • @guanzhaoli4917
    @guanzhaoli4917 4 ปีที่แล้ว +1

    I hope my school can hire you as my algo professor sir. Really nice explanation.

  • @devorein
    @devorein 2 ปีที่แล้ว

    That was a really well explained video. Thank you Sir. Much love.

  • @nini-ic7is
    @nini-ic7is 5 ปีที่แล้ว +1

    thank you sir u are a blessing to us I really hate this algo

  • @suyashjain4485
    @suyashjain4485 6 ปีที่แล้ว +2

    Sir, you explained it neatly
    Thanks

  • @FujihiroCZ
    @FujihiroCZ 3 ปีที่แล้ว +2

    Perfect explanation man!

  • @poetrycorner1098
    @poetrycorner1098 4 ปีที่แล้ว +13

    sir je at 6:31 why we are choosing from D to A there is dircted path for A to D not D to A????

    • @osmankhalid2005
      @osmankhalid2005 3 ปีที่แล้ว

      either he is himself confused and not sure why he is doing it, or he is trying to follow the concept of reverse edges of Ford-Fulkerson, but not actually inserting reverse edges

  • @AmanKumar-gq7li
    @AmanKumar-gq7li 3 ปีที่แล้ว

    Cleared many doubts. Thank You

  • @bongatonghop65
    @bongatonghop65 5 ปีที่แล้ว

    I only listen a few word but I very easy understand ...thank you I am from Việt Nam

  • @BenNelsonillegalnumbers
    @BenNelsonillegalnumbers 6 ปีที่แล้ว +4

    This is a great explanation of working step by step!

  • @hemantbohra143
    @hemantbohra143 ปีที่แล้ว

    I have choosen path s>a>b>t = 4
    Then s>c>d>t =1
    Then s>a>d>t = 1
    Then s>a>d>b>t = 5
    And got max flow 11
    Is it correct??

  • @Rothaf4759
    @Rothaf4759 4 ปีที่แล้ว

    Wonderful explanation, i certainly had no doubts going into my exam after this video.

  • @sounghwanhwang5422
    @sounghwanhwang5422 2 ปีที่แล้ว

    Very nice explanation... thanks a lot

  • @soumalyasahoo2664
    @soumalyasahoo2664 4 ปีที่แล้ว

    Was stuck on the concept of reverse edges...I Came here...I saw....I conquered the doubt.

  • @nasarathabdulgafoor6506
    @nasarathabdulgafoor6506 4 ปีที่แล้ว

    Thank you sir. Very good explanation.

  • @memoryLB
    @memoryLB 5 ปีที่แล้ว +6

    Thanks for this video. I understood the goal and process of this theory generally. However, i am still quite confused because the selection of the path is little chaotics.

    • @wirito
      @wirito 4 ปีที่แล้ว +1

      If you do it on paper along with the video, you will understand. I did that and it clicked :)

  • @CSEBivekKumarSahNirala
    @CSEBivekKumarSahNirala 4 ปีที่แล้ว

    Thank you so much sir it's very helpful for me

  • @RanbirSingh-zc2du
    @RanbirSingh-zc2du 5 หลายเดือนก่อน

    very good explanation!!!!!!!

  • @sujitsah7223
    @sujitsah7223 4 ปีที่แล้ว +3

    sir i have doubt..
    if there is path from A to D in this graph..
    then how you have considered the path i.e. S->C->D->A->B->T...
    if there is arrow from only A to D.

    • @amarks444
      @amarks444 4 ปีที่แล้ว

      It's Actual shows that there is path from D->A but, in real it changes the Quantity flowing throgh it.
      initial: A->B(0/4) &A->D(8/8)
      After: A->B(4/4) &A->D(4/8)
      Beacuse , Inflow is equal to Outflow.

  • @LvGbLiNd
    @LvGbLiNd 5 ปีที่แล้ว +19

    I absolutely heard "Now Niggas discuss" at the beginning and was like WOW hold your horses D:

    • @Sivah_Akash
      @Sivah_Akash 5 ปีที่แล้ว

      Lol 😆

    • @Sivah_Akash
      @Sivah_Akash 5 ปีที่แล้ว

      Did you get what he actually said then?

    • @vaibhavranshoor2664
      @vaibhavranshoor2664 4 ปีที่แล้ว

      @@Sivah_Akash he said "let us discuss"

    • @Sivah_Akash
      @Sivah_Akash 4 ปีที่แล้ว

      @@vaibhavranshoor2664, I did get that. Just wanted to know if Guillermo understood it later.

  • @vishakhabinani6856
    @vishakhabinani6856 7 หลายเดือนก่อน

    bro is just so adorable . thankyou sir!!

  • @gechfikadu8431
    @gechfikadu8431 3 ปีที่แล้ว

    great! i'm waiting u with other tutorials

  • @mohammedadel8948
    @mohammedadel8948 2 ปีที่แล้ว

    Thank you for your efforts

  • @yuvashreerchan7407
    @yuvashreerchan7407 3 ปีที่แล้ว

    great explanation!!! Thanks a lot sir

  • @shima6163
    @shima6163 4 ปีที่แล้ว

    the best explanation thanks

  • @anuragdwivedi1804
    @anuragdwivedi1804 5 ปีที่แล้ว

    perfect lecture for network flow problem

  • @nishitasingh5227
    @nishitasingh5227 4 ปีที่แล้ว +1

    Thanks for the video

  • @yashwantbhagawat2710
    @yashwantbhagawat2710 5 ปีที่แล้ว +5

    sir i have doubt..
    if there is path from A to D in this graph..
    then how you have considered the path i.e. S->C->D->A->B->T...
    if there is srrow from only A to D🤔
    pls sir clear this my doubt...

    • @yashwantbhagawat2710
      @yashwantbhagawat2710 5 ปีที่แล้ว

      and wht about s>a>b>t?

    • @explorewithavi9925
      @explorewithavi9925 4 ปีที่แล้ว

      @@yashwantbhagawat2710 the path s to a have reached its maximum capacity so the flow cant happen in that path

    • @lavalyrics3193
      @lavalyrics3193 4 ปีที่แล้ว

      The path ure saying is wrong
      Follow the arrows and reach to the sink

  • @shevinweerakone3250
    @shevinweerakone3250 3 ปีที่แล้ว

    Thank u, very helpful and straight to the point 🙏

  • @BADKALOS
    @BADKALOS 6 ปีที่แล้ว

    Thank you sir. Simple and on point.

  • @aaakashkumar
    @aaakashkumar 5 ปีที่แล้ว +2

    Will I get the same answer (19), if I choose the paths in a different order, say, choosing S-C-D-T before S-A-D-T?

  • @deepakbarala1521
    @deepakbarala1521 5 ปีที่แล้ว +9

    Check 3rd path first.
    How the path go back D to A in directed graph.
    Think about it sir .

    • @sangramjitchakraborty7845
      @sangramjitchakraborty7845 5 ปีที่แล้ว

      Path is not going from D to A in the original graph. A path is formed in the residual graph. He didn't show the residual graph. Think of it like retracting the flow that was flowing through that edge.

    • @jatindersingh2260
      @jatindersingh2260 4 ปีที่แล้ว +1

      Same doubt

    • @dkapur17
      @dkapur17 4 ปีที่แล้ว

      ​@@jatindersingh2260 Adding a backward flow in the edge is like reducing the forward flow in the edge. So it still holds with your reasoning. We are just sending less flow through the edge. It is fine as long as we don't send more flow in the reverse edge than the flow in the forward edge, otherwise the flow will become negative.

  • @anonym8361
    @anonym8361 ปีที่แล้ว

    Alternate Soln:
    S -> C -> D -> T
    S -> A -> D -> B -> T
    S -> A -> B -> T

  • @MisterAadj
    @MisterAadj 4 ปีที่แล้ว

    i see why you have 1.3milion subscribers. nice video

  • @summerbreeze9090
    @summerbreeze9090 2 ปีที่แล้ว

    At 8:44, He chose s->A->D->B->t.
    At 8:51, he compared the path with s->C->D->B->t saying that we cannot proceed on s->C->D->B->t.
    Why we can not choose s->C->D->B->t ? I still don't get it.
    Thank you

  • @jotjot3000
    @jotjot3000 5 ปีที่แล้ว

    thanku sir u explain it too easy

  • @krantijaybhay1295
    @krantijaybhay1295 6 ปีที่แล้ว

    Very well explained sir thank you

  • @Nuobu-p7k
    @Nuobu-p7k 6 หลายเดือนก่อน

    I thinking, there no edge from D to A, y in the third augmenting path there is an edge from D to A? does not that violate the directed graph principle?

  • @ssm840
    @ssm840 2 ปีที่แล้ว +1

    if i were to select a forward edge A-C for a flow of 2,it will achieve its maximum capacity of 2/2. Does that mean i can for some other instance select C-A (backward edge) for 2 as well? Then will its capacity become 2-2=0? IF it becomes zero once again,does that mean one can again route a flow through A-C upto a capacity of 2 once more (as the capacity became 0 after selecting the backward edge C-A)?
    Could someone shed some light on this confusing aspect of ford fulkerson algo?

  • @TusharMahli123
    @TusharMahli123 5 ปีที่แล้ว +1

    What a clear explanation. Really impressive

  • @akilandeswaryg4666
    @akilandeswaryg4666 6 ปีที่แล้ว

    thanks a lot sir.u taught clearly.nice presentation.can u put ur video for max flow min cut theorem

  • @НектоЛохматый
    @НектоЛохматый 5 ปีที่แล้ว +3

    That's great, but I can't understand how you choose these paths. Why did you go D->B (by a backward edge) where as some forward edges remained with 0 flow? Not clear.

    • @deepjyotide3223
      @deepjyotide3223 5 ปีที่แล้ว +1

      You can select arbitrarily. and the backward flow was possible because the flow (8) wasn't zero. and even if you select A->B path the maximum flow will be 19 in the sink.

  • @ssm840
    @ssm840 2 ปีที่แล้ว +1

    The definition of augmenting path states that "Traditional network flow algorithms are based on the idea of augmenting paths, and repeatedly finding a path of positive capacity from s to t and adding it to the flow" . But when we select a backward edge,does that qualify as a path of positive capacity?

    • @adityaranjansahoo6261
      @adityaranjansahoo6261 6 หลายเดือนก่อน

      according to CLRS, for every foward edge f(u,v) a backward edge of value, f(v,u)=-f(u,v) exists

  • @bujjibabulingampalli9648
    @bujjibabulingampalli9648 5 ปีที่แล้ว

    Thank u sir.. Extremely good.. Nice explanation

  • @navyasrikamireddy3753
    @navyasrikamireddy3753 10 หลายเดือนก่อน

    Can I please know how are we selecting the augmented paths, like are those the random paths and solving or like..??

  • @daehyuncho1766
    @daehyuncho1766 ปีที่แล้ว

    nice video with nice suit

  • @dhanukamallawaarachchi9538
    @dhanukamallawaarachchi9538 2 ปีที่แล้ว

    Thank you. And I have a question.
    What if we have 2 entrances to and 2 exits from the network? What is the modification then?
    Thanks in advance.

    • @priskon5950
      @priskon5950 ปีที่แล้ว

      We create a Parent source and Parent ink and connect them to all sources giving them an infinite capacity, and then proceed as normal.

  • @ShakrinJahanMozumder
    @ShakrinJahanMozumder 8 หลายเดือนก่อน

    Thank you, Sir!

  • @shayanbagherpour526
    @shayanbagherpour526 6 ปีที่แล้ว

    Thanks it was really helpful

  • @jayush8480
    @jayush8480 ปีที่แล้ว

    Thank you Sir

  • @suryag8976
    @suryag8976 2 ปีที่แล้ว

    Thanks a lot sir!

  • @matiahey3474
    @matiahey3474 4 ปีที่แล้ว

    very beautiful describe

  • @debaratighatak2211
    @debaratighatak2211 3 ปีที่แล้ว

    Thank you sir😊❤

  • @sujithas4295
    @sujithas4295 5 ปีที่แล้ว +13

    Sir ur explanation is gd but in the 3rd one there is no path for the D->A but then how shall we make it plz check it out .Thank u sir...

  • @SULEKHADAS-qo6mk
    @SULEKHADAS-qo6mk 5 หลายเดือนก่อน +1

    @7.30 minutes, step 3- augmenting path is expressed as S-C-D-A-B-T , is not possible . From A to D there is a direct connection but D to A no direct path is there.

  • @01jojorocks
    @01jojorocks 4 ปีที่แล้ว

    My question is that how can you say that the maximum flow will be 19 as you have chosen arbitrary paths and someone could have chosen some other arbitrary paths for which the maximum flow could have been 20. You proved that for your chosen augmented paths at the end there cannot be more flows but why not for some other chosen arbitrary augmented paths?

    • @soumalyasahoo2664
      @soumalyasahoo2664 4 ปีที่แล้ว

      You can take other paths as well but that won't change the maximum flow.

    • @kirane61
      @kirane61 4 ปีที่แล้ว

      @@soumalyasahoo2664 The maximum flow will be 20,if we choosee different argument paths..

  • @ahmedhbaieb1973
    @ahmedhbaieb1973 ปีที่แล้ว

    Top rojla bro

  • @nowshintabassum2768
    @nowshintabassum2768 3 ปีที่แล้ว

    I get the back edge D to A and all. We can send from D to A.
    But in diagram 3, how can he send 4 more flow from A to D when the path has already reached it's capacity!! We can only go backward and not forward, right?

  • @anassibrahimi7041
    @anassibrahimi7041 2 ปีที่แล้ว

    The minimum cut here (which is equal to the maximum flow) consists of the edges S->A & C->D

  • @shreyashdewangan7288
    @shreyashdewangan7288 3 ปีที่แล้ว

    thankuuuuu sir

  • @Hop
    @Hop 4 ปีที่แล้ว +1

    Indians are always the lifesavers.

  • @govindjangid6201
    @govindjangid6201 4 ปีที่แล้ว

    Thanks sir

  • @julius-te4gp
    @julius-te4gp 2 ปีที่แล้ว

    fortiniti ila babaj?

  • @tusharverma2454
    @tusharverma2454 3 ปีที่แล้ว

    Thanks Sir.

  • @kishanlal676
    @kishanlal676 5 ปีที่แล้ว

    If I change the order of selecting Augmenting path, will it affect the value of maximum flow?

    • @talha191995
      @talha191995 5 ปีที่แล้ว +1

      same question!

    • @dhavalchheda1626
      @dhavalchheda1626 5 ปีที่แล้ว

      No it doesn't change your value but you take more time to come to the same conclusion.

  • @ammarhaiderjafri9390
    @ammarhaiderjafri9390 3 ปีที่แล้ว

    For which edges in the network, the maximum flow would increase, if their capacities are
    doubled., Answer ?

  • @Ahmad_Alhasanat
    @Ahmad_Alhasanat 4 ปีที่แล้ว

    If you put the flow as an arrow direction in it would be easy to understand without having write and delete

  • @Autom_te
    @Autom_te 4 ปีที่แล้ว

    JavaScript is complimentary to and integrated with Java.

  • @wanted909090
    @wanted909090 6 ปีที่แล้ว +1

    thank you very much for your clear illustration.....god bless you

  • @kingrajput6202
    @kingrajput6202 3 ปีที่แล้ว

    how can we take scdabt, isn't the edge directed from a to d ?

  • @MJ-kl9zq
    @MJ-kl9zq 5 ปีที่แล้ว +1

    Watch at 1.5x speed :)

  • @nour_raafat
    @nour_raafat 3 ปีที่แล้ว

    Thank You!

  • @sohamgurav7713
    @sohamgurav7713 5 ปีที่แล้ว +10

    The magic of this video is that the bottle neck capacity of 3rd path is 'FORD'😂, hit like if you got it

  • @jyotibhardwaj293
    @jyotibhardwaj293 2 ปีที่แล้ว

    S,A,D,T(8) then scdt(2),sabt(2),scdbt(6),so total flow is =18 here.when we take different path,then flow is different

  • @nouhabouti3256
    @nouhabouti3256 5 หลายเดือนก่อน

    so when i use max flow min cut ,the minimum cut equals 20 so how? we say that the min cut=max flow ?

    • @Levithan-c4z
      @Levithan-c4z 22 วันที่ผ่านมา

      min cut is 19. try cutting from S and C as one pair of vertex and A,B,D,T as other. you will get 19 min flow

  • @pisanghangus2
    @pisanghangus2 4 ปีที่แล้ว

    thanks

  • @srivatsann7193
    @srivatsann7193 5 ปีที่แล้ว +1

    Where is that video man???

  • @simransimran6766
    @simransimran6766 5 ปีที่แล้ว

    thank u sir

  • @thangamanig7122
    @thangamanig7122 11 หลายเดือนก่อน

    The explanation covers 80% of the algorithm only. Any bad selection of the augmenting paths sometimes ends up with a solution lower than the maximal flow. After finishing all the flows of the augmenting paths, it is essential to check the reverse-flow augmenting paths. You are missing these important steps.

  • @hannahsabir9705
    @hannahsabir9705 6 ปีที่แล้ว

    Amazing thank you

  • @JayWavy-me5pq
    @JayWavy-me5pq 3 ปีที่แล้ว

    How are you able to go from D to A, the graph is directed for a reason

  • @spikezy999
    @spikezy999 4 หลายเดือนก่อน

    Here we go the night before examination

  • @getluckyy1006
    @getluckyy1006 2 ปีที่แล้ว

    Perfect!

  • @kshitijsabale7534
    @kshitijsabale7534 4 ปีที่แล้ว +1

    My Question says to use labeling procedure. Plz can someone quickly answer that, is ford fulkerson's algorithm also known as labelling procedure?