Giter Site home page Giter Site logo

Dinic about kactl HOT 7 CLOSED

kth-competitive-programming avatar kth-competitive-programming commented on August 19, 2024
Dinic

from kactl.

Comments (7)

ludopulles avatar ludopulles commented on August 19, 2024

Link is dead, consider https://github.com/TimonKnigge/TCR/blob/master/snippets/flowalgorithms/dinic.cpp

from kactl.

simonlindholm avatar simonlindholm commented on August 19, 2024

I guess we can remove Hopcroft-Karp when we add Dinic, to win back space.

from kactl.

ludopulles avatar ludopulles commented on August 19, 2024

Do you also still need EdmondsKarp in this case? Otherwise, it would give PushRelabel, Dinic and EdmondsKarp as flow options. While the last two have the same complexity.

from kactl.

simonlindholm avatar simonlindholm commented on August 19, 2024

Possibly worth keeping if it's shorter? (Surely Dinic's must be faster than EdmondsKarp.) On the other hand, maybe we should just unify on a single flow algorithm, to avoid being able to pick the wrong thing. This part of KACTL has always been a mess...

from kactl.

Chillee avatar Chillee commented on August 19, 2024

EdmondsKarp is VE^2, while Dinic is EV^2. Dinic's also has a lot of nice properties on things like unit graphs or bipartite matching graphs too (VE^(1/2) for bipartite matching graphs, and min(V^(1/2), E^(2/3))E on unit graphs). So using Dinic's can also obsolete Hopcroft Karp too.

from kactl.

Chillee avatar Chillee commented on August 19, 2024

I think this issue, at least, is resolved. There's another discussion to be had about the "Flow algorithm" situation.

from kactl.

simonlindholm avatar simonlindholm commented on August 19, 2024

Yep.

from kactl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.