Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Flow, value?

Ook bekend als: flow (network) · value of a flow

Definition 26.2 University Computer Science — Year 2 · Hoofdstuk 26 — Flows and Matchings

A flow is a function ff on the edges with

  • capacity: 0≤f(u,v)≤c(u,v)0 \leq f(u, v) \leq c(u, v) for every edge;
  • conservation: for every vertex w≠s,tw \neq s, t, what enters equals what leaves, ∑uf(u,w)=∑vf(w,v)\sum_{u} f(u, w) = \sum_{v} f(w, v).

Its value is what leaves the source, less what enters it: ∣f∣=∑vf(s,v)−∑uf(u,s)|f| = \sum_{v} f(s, v) - \sum_{u} f(u, s). A maximum flow is a flow of largest value.

The network of  with its maximum flow, each edge labelled flow/capacity; saturated edges are red. The dashed line is the minimum cut: the edges from S to T are (a, d) and (c, t), both saturated, of total capacity 5 + 7 = 12, the value of the flow.
The network of Output 26.2 with its maximum flow, each edge labelled flow/capacity; saturated edges are red. The dashed line is the minimum cut: the edges from SS to TT are (a,d)(a, d) and (c,t)(c, t), both saturated, of total capacity 5+7=125 + 7 = 12, the value of the flow.
Lees in het hoofdstuk →