Graph Theory37 sections · 1633 units
Open in Course

When to Use Each Algorithm

Kuhn vs Max Flow vs Hopcrof...

Use Kuhn's algorithm for most problems: simple to code, works for V1000V \leq 1000 in competitive programming. Use Hopcroft-Karp if you need O(EV)O(E \sqrt{V}) for larger graphs (V>104V > 10^4). Use max flow reduction if you already have a max flow implementation or the problem needs additional constraints (like edge capacities).

Use Hungarian algorithm for weighted matching where you want maximum total weight.