Content deleted Content added
No edit summary |
m Bot: link syntax and minor changes |
||
Line 272:
| website = Algorithms for Competitive Programming
| access-date = May 14, 2023
}}</ref>
| url = https://cp-algorithms.com/graph/Assignment-problem-min-flow.html
| title = Solving assignment problem using min-cost-flow
Line 279:
| website = Algorithms for Competitive Programming
| access-date = May 14, 2023
}}</ref> where the reweighting technique from [[
The implementation from the previous section is rewritten below in such a way as to emphasize this
connection; it can be checked that the potentials <math>h</math> for workers <math>0\dots W-1</math> are equal to the potentials <math>y</math> from the previous solution up to a constant offset. When the graph is sparse (there are only <math>M</math> allowed job, worker pairs), it is possible
|