Edmond Karp Algorithm Implementation

I have implemented the Edmond Karp Algorithm as shown in the video. But my program is showing runtime error. Please see to it. My code link is: https://ide.codingblocks.com/s/104173

Hello @CCCB0035,

I have found the mistake that is causing runtime error in your code.
for(int j=0;j<augmentedPaths[i].size();i++)

Can you see it?
If not, Try hard. There is something wrong with the above mentioned code.

Hope, it would help.
Give a like, if you are satisfied.

1 Like

Oh yes, I got it. It should be j++ and not i++,isn’t it?

Absolutely correct.:wink:

Give a like, if you are satisfied.
Also, mark this as resolved if you have no more doubts regarding this.

1 Like