全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Flow, value?

又称: flow (network) · value of a flow

Definition 26.2 University Computer Science — Year 2 · 第 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.
在原文中阅读 →