P-complete

Maximum Flow (MaxFlow)

Input

A directed graph $G = (V, E)$ with each edge $e$ labeled by an integer capacity $c(e) \geq 0$, two distinguished vertices, source $s$ and sink $t$, and a value $f$.

Problem

Is there a feasible flow of value $f$, that is, is the value of the maximum flow into the sink greater than or equal to $f$?

Definitions

See [1] and [2].

Status

$\P$-complete (Goldschlager, Shaw, and Staples [3], Lengauer and Wagner [4]).

Remarks

The first $\P$-completeness proof for a decision problem derived from Maximum Flow was for the problem of determining whether the flow is odd or even [3]. See Dinic [1] or Ford and Fulkerson [2] for polynomial time algorithms. The reduction from AM2CVP produces exponential edge capacities in $G$. In a network with edge capacities expressed in unary, computing the magnitude of the maximum flow is in $\mathsf{RNC}^2$ (Feather [5]) and a method for finding the flow in $\mathsf{RNC}$ is also known (Karp, Upfal, and Wigderson [6]).

If the network is restricted to being acyclic, MaxFlow remains $\P$-complete (Ramachandran [7]). Flows in planar networks can be computed in $\NC$ (Johnson [8], Johnson and Venkatesan [9]). Two Commodity Flow (2CF) is defined similar to MaxFlow except there are two sources and two sinks, and there are two separate flow functions for the commodities. Since MaxFlow is a special case of 2CF and 2CF is in $\P$ by results of Itai [10] and Khachian [11], it follows that 2CF is $\P$-complete. Itai defined several other variants of 2CF that are also $\P$-complete. They are defined below. $(l, u)$-2CF is a restricted form of 2CF in which there are lower and upper bounds on the capacity of each edge. Selective $(l, u)$-2CF is defined to be a 2CF with lower and upper bounds on the sum of the two flows on each edge. Stein and Wein show that, although there is an $\mathsf{RNC}$ algorithm to approximate maximum flow, approximating the minimum cost maximum flow is $\P$-complete [12].

References

  1. E. A. Dinic (1970). Algorithm for solution of a problem of maximum flow in a network with power estimation.
  2. L. R. Ford and D. R. Fulkerson (1962). Flows in Networks.
  3. L. M. Goldschlager, R. A. Shaw, and J. Staples (1982). The maximum flow problem is log space complete for P.
  4. T. Lengauer and K. W. Wagner (1988). The binary network flow problem is logspace complete for P.
  5. T. Feather (1984). The parallel complexity of some flow and matching problems.
  6. R. M. Karp, E. Upfal, and A. Wigderson (1986). Constructing a perfect matching is in Random NC.
  7. V. Ramachandran (1987). The complexity of minimum cut and maximum flow problems in an acyclic network.
  8. D. B. Johnson (1987). Parallel algorithms for minimum cuts and maximum flows in planar networks.
  9. D. B. Johnson and S. M. Venkatesan (1982). Parallel algorithms for minimum cuts and maximum flows in planar networks (preliminary version).
  10. A (1978). Itai. Two–commodity flow. Journal of the ACM, 25(4):596–611, 1978..
  11. L. G. Khachian (1979). A polynomial time algorithm for linear programming.
  12. C. Stein and J. Wein (1992). Approximating the minimum-cost maximum flow is P-complete.
  13. Greenlaw, R., Hoover, H. J., and Ruzzo, W. L. (1995). Limits to Parallel Computation: P-Completeness Theory. Oxford University Press. Problem A.4.4.