Determining the minimum flow in a graph with minimum overhead

Recently, I was preparing for the acm-icpc contest. Here I want to know how to find the minimum flow with the lowest cost, provided that each edge on the graph has a capacity C, a cost V, and a lower flow L (L ≤ C).

+3
source share
3 answers

Firstly, I'm not sure what the “least cost least flow” means, but I suspect you just mean the “least cost flow”.

Secondly, the flows of the lower boundary mean that it is not trivial to find a “legitimate flow”, which is a flow in which mass conservation is observed, i.e. the sum of the incoming flows is equal to the sum of the outgoing flows for all nodes except the source and receiver. (Typically, flow problems have L = 0, which means that zero flow is legal.) In fact, there are variants of L and C for which there is no legitimate flow.

, , , L . , . ( ) node node . , , ( ).

, Ford-Fulkerson preflow-push ( ).

0

!

, , , , .

, . , , , : " ". , , ( ): http://www.cs.princeton.edu/~wayne/papers/ratio_talk.pdf

, .

, , .

0

, .

C, L V , ? , , . , , , V ? , , E.V L > 0.

, .

0

Source: https://habr.com/ru/post/1765086/


All Articles