Need a neat implementation of Min Cost-Max Flow algorithm as I am not able to understand e-maxx.ru . And my code is too buggy to debug. Any help would be appreciated.

# | User | Rating |
---|---|---|

1 | tourist | 3496 |

2 | Um_nik | 3337 |

3 | Petr | 3298 |

4 | W4yneb0t | 3218 |

5 | Radewoosh | 3216 |

6 | OO0OOO00O0OOO0O0…O | 3188 |

7 | Syloviaely | 3168 |

8 | izrak | 3109 |

9 | anta | 3106 |

10 | fateice | 3099 |

# | User | Contrib. |
---|---|---|

1 | tourist | 184 |

2 | rng_58 | 170 |

3 | csacademy | 165 |

4 | Petr | 158 |

5 | Swistakk | 154 |

6 | lewin | 149 |

7 | Errichto | 147 |

8 | matthew99 | 146 |

9 | adamant | 141 |

9 | Zlobober | 141 |

Need a neat implementation of Min Cost-Max Flow algorithm as I am not able to understand e-maxx.ru . And my code is too buggy to debug. Any help would be appreciated.

↑

↓

Codeforces (c) Copyright 2010-2018 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Feb/22/2018 02:16:28 (d2).

Desktop version, switch to mobile version.

User lists

Name |
---|

Hello! In this notebook has the implementation that I usually use, I hope it helps :)

https://github.com/Gabriel123Duarte/maratona-final/blob/master/Notebook/100%5Eo.pdf

Nice code bro.

This looks your '-'

First of all thanks for the pdf. Is there any Translated version of the above

Sorry, this pdf only has the version with the comments in portuguese :/

I hope this help you

http://ideone.com/jQqO6I

I know you got some codes already, but I thought mine could be helpful, too. Code, which is actually a solution to this problem.

hi thanks for the code can you also tell me the running time of code

I am sorry but I don't remember which article I learnt this from and I can't calculate the complexity myself. I only remember that for the assignment problem it works in

O(N^{3}*logN). If you actually meantrunning time, it's around 250 ms.i have seen implementation of mcmf with dijkstra, spfa and bellman ford. and most of them use spfa. why dijkstra is not used much despite having better complexity??